Skip to content

Commit

Permalink
Merge pull request #1 from IvannaPanchenko/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
IvannaPanchenko authored Oct 24, 2019
2 parents 48aef11 + db7f6b8 commit 8bbdba9
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
venv
*.pyc
staticfiles
staticfiles
.idea/
36 changes: 32 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,37 @@

Django application for listing all Metadata for a Salesforce Org. This app is designed to run on Heroku, but could be amended to run locally or any desired server

## Setup
![App Screenshot](packageBuilder.PNG)

To set this up on your own Heroku account, this app does require some knowledge of deploying Django apps. The following Heroku resources are required:
- Heroku Postgres (or alternative database)
- Redis To Go (or Heroku Redis - but might require some minor changes)

#Python
1) Install Python version 2.7
2) Install virtualenvwrapper-win if you have installed different Python version

#Salesforce

3) Login in Salesforce Org in Lighting Experience
4) Setup> Apps> App Manager > New Connected App
4.1 Complete required fields
4.2 Enable OAuth Settings checked
4.3 Save
4.4 From API (Enable OAuth Settings) you will need Consume Key, Consumer Secret, Callback URL (heroku app url), API version

#Heroku
5) Create a Heroku account or you your own
6) (Optional) Install Heroku CLI
7) Using Shell navigate to project folder and run >
5.1 Login in Heroku: heroku login
5.2 to deploy>git push heroku master

###Errors
If the deployment fails you will need to complete the following steps from your Heroku Account
8) Config Vars:{ProjectName} >Settings> Config Vars> add the following Vars
DISABLE_COLLECTSTATIC = 1
SALESFORCE_API_VERSION = Your ORG API VERSION
SALESFORCE_CONSUMER_KEY = take it from the the step 2.4 "Consume Key"
SECRET_KEY = take it from steps 2.4 "Consumer Secret"
9) Resources: add Heroku Postgress Database or Alternative DB and Heroku Redis both are free but you need to config a credit card.

###Logs
To view logs run > heroku logs --trail
Binary file added packageBuilder.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packagebuilder/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@

SALESFORCE_CONSUMER_KEY = os.environ['SALESFORCE_CONSUMER_KEY']
SALESFORCE_CONSUMER_SECRET = os.environ['SALESFORCE_CONSUMER_SECRET']
SALESFORCE_REDIRECT_URI = 'https://packagebuilder.herokuapp.com/oauth_response'
SALESFORCE_REDIRECT_URI = os.environ['SALESFORCE_REDIRECT_URI']
SALESFORCE_API_VERSION = int(os.environ['SALESFORCE_API_VERSION'])

SALESFORCE_REST_URL = '/services/data/v%d.0/' % SALESFORCE_API_VERSION
Expand Down

0 comments on commit 8bbdba9

Please sign in to comment.