Some notes:
Dev
- create
.env
file with contents like these
NODE_ENV=local
DB_CONNECTION_STRING=mongodb://localhost
PORT=5000
SLACK_WEBHOOK=https://hooks.slack.com/services/....
DARTS_CHANNEL=darts
- run
heroku local dev
cd client
npm start
Prod
- Heroku - configure env variables
- Deploy (eg. from heroku dashboard, github integration)
- Done (heroku will automatically call
npm start
andnpm run heroku-postbuild
which will build the API and Client and start listening on PORT)