Skip to content

00 Deployment

Elyse Yao edited this page Mar 8, 2022 · 3 revisions

To Heroku (recommended)

You can access the deployed web app on Heroku, where you can access all the functionality!

(Although you won't be able to access anything directly without a session cookie, the deployed server is also on Heroku.)

If you'd like to make changes to the deployed version, push a commit to the prod branch to automatically deploy your changes to Heroku via Github Actions.

From Github

If you'd like to develop and run the app yourself, clone our entire repository.

Since we'd rather not push our environment secrets and API keys to Github, you'll have to make your own server/.env file. To do so, you'll need to sign up for MongoDB Atlas and replace our placeholders below with your own database URL, or setup your own MongoDB instance locally.

DB_URI=[Your Mongodb Atlas Main DB URL here]
TESTDB_URI=[Your Mongodb Atlas Test DB URL here]
SESSION_URI=[Your Mongodb Atlas Session DB URL here]
SECRET=[chooseyourownrandomsecret]
PORT=5000
ESLINT_NO_DEV_ERRORS=true

... and client/.env file:

PORT=3000
ESLINT_NO_DEV_ERRORS=true

Then, in the root directory, run:

npm ci
npm run dev

To install all dependencies start up development versions of the web app client and server. Once everything is done, you'll be able to access the app at localhost:3000!

Clone this wiki locally