- Have Docker installed
- Create a copy of
.env.dist
in/Backend
and rename it to just.env
If developing:
- Run
docker compose -f docker-compose.dev.yml up --build
. This will set up a database and start listening on port 80.
If running in prod:
- Edit
.env
and set DEBUG to False, create a new Django secret key and configure database credentials if needed. - Run
docker compose up --build
. The website will be served on port 80.
If testing:
- Run
docker compose -f docker-compose.test.yml up --build --force-recreate --remove-orphans --abort-on-container-exit
. It will run tests and report code coverage at the end.
Using Node v14.17.0 and Python 3.8.