Both the frontend and backend make use of environment variables that will need to be present out before building.
In both the client and api directories, there is an example .example.env which should be filled out and renamed to .env
api/.env
# Server settings
NODE_ENV=deployment
SERVER_PORT=5000
# Authentication settings
EMAIL_KEY=https://example.com/email
AUTH0_AUDIENCE=
AUTH0_ISSUER=
JWKS_URI=
# SSL settings
SSL_CRT_FILE=
SSL_KEY_FILE=
# Database settings
DB_ENDPOINT=
DB_NAME=
DB_USERNAME=
DB_PASSWORD=
# AWS
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_BUCKET_NAME=
client/.env
# API settings
REACT_APP_API_URL=https://localhost:5000/api/
# Authentication settings
REACT_APP_AUTH0_DOMAIN=
REACT_APP_AUTH0_CLIENT_ID=
REACT_AUDIENCE=
The keys used in the default deployment can be found in the #keys channel in Slack.
Before running the API, you will need a valid SSL certificate. Instructions for getting a signed SSL certificate can be found at https://letsencrypt.org/.
You will also need a valid DNS name before getting an SSL certificate. We used https://freedns.afraid.org/ but others are available.
The environmental variables
SSL_CRT_FILE=
SSL_KEY_FILE=
Must be defined in both 'api/.env' and 'client/.env'.
In the root directory, start by installing the dependent node modules: