Development:
clone this repo
yarn install
make .env file from example.env
yarn run dev
(automatically) open browser at localhost:3000
🚀
The config variables can be found in the Heroku settings for each app. Due to create-react-app
variables needs to be prefixed with REACT_APP
to be exposed in the React (client-side) app.
This application base hosts all of the apps in the system:
- Frontend
/src/frontend
- API
/src/api
Heroku Multi Procfile Buildpack
Set the following environment variables to specify which app you want to deploy:
PROCFILE
- Set the path to the
Procfile
you want to use - Example:
./src/frontend/Procfile
- Set the path to the
APP
- Set the name of the app you are deploying
- Corresponding to its folder name
- Makes sure the correct scripts are executed
- Example:
frontend
Then set the additional appropriate environment variables that are required by the application specified.
TODO