-
Fork the project repo to your own personal GitHub account by clicking on the "Fork" button at the upper right hand of the repo's page on GitHub. This creates a personal copy of the repo under your own GitHub account.
-
Create a new Heroku app, and link it to you forked copy, so that you are ready to deploy the master branch.
-
Create a new file called ".env" at the root of the forked repository and copy the contents of the file ".env.Sample" to the ".env" file
-
Install Node (Steps can be found here)
-
Create auth0 credentials following the instructions from this link. Make sure to update "callback URL" option and add "YOURURL/api/callback" and for "Allowed Logout URLs" add "YOURURL". "YOURURL" should be the url of your deployment. After following these steps the following keys in the .env file should be filled: AUTH0_CLIENT_ID, AUTH0_CLIENT_SECRET, AUTH0_DOMAIN
-
Complete the MongoDB Cloud Atlas setup following the instructions from this link. You should repeat these steps but with a new database for production and staging and each of them would have an unique MONGODB keys to it which you can get from creating the clusters. For an application that does not need additional development enviornments(eg. lab09) using the same MONGODB_URI for the MONGODB_URI_PRODUCTION, MONGODB_URI_STAGING will work fine and is a simpler process. After following these steps the following keys in the .env file should be filled: MONGODB_URI, MONGODB_URI_PRODUCTION, MONGODB_URI_STAGING
-
Generate a random 32 bit hex string and put this value in the SESSION_COOKIE_SECRET section of the .env file. A good website to generate this string is at this link.After following this steps the following keys in the .env file should be filled: SESSION_COOKIE_SECRET
-
Once these steps are completed, on the page for your heroku app under settings, click "reveal config vars". Copy all the keys of your ".env" file with the appropriate keys: AUTH0_CLIENT_ID, AUTH0_CLIENT_SECRET, AUTH0_DOMAIN, MONGODB_URI, MONGODB_URI_PRODUCTION, MONGODB_URI_STAGING, and SESSION_COOKIE_SECRET
-
Navigate to the deploy tab in heroku and select whether you would like to deploy the master branch manually or automatically.
-
When all of the previous steps are completed, you should be able to click the "Open app" button on heroku. Congratulations you have now deployed the app!
Our team: s0-t1-budget
Other Teams:
Team | Who is reviewing | Issue Number |
---|---|---|
s0-t2-env | Trung,Edward | 44 |
s0-t3-iv-housing | Tomas,Tristan | 43 |
s0-t4-new-city | Conner, Preetham | 42 |