-
If you don't have yarn installed, run
sudo npm install -g yarn
-
Run
yarn install
Before running the system, you must also define some environment variables:
PORT The port to run the server on
SECRET The secret used to encrypt session storage
Then if running in development, also define
MONGODB_LOCAL the url for the mongodb used to persist data
Alternatively, see the Docker section on how to run the entire system in a Docker container, removing the need to set these values.
- Run
yarn run development
-
Run
yarn run build
-
Run
yarn run production
The system has docker files defined to allow the entire system to run in set of docker containers.
To start the system in this way, run docker-compose up