Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
/ PZ-IP Public archive

Pastebin-like website for uni group project

Notifications You must be signed in to change notification settings

MCHSL/PZ-IP

Repository files navigation

codecov

how 2 run

  1. Have Docker installed
  2. Create a copy of .env.dist in /Backend and rename it to just .env

If developing:

  1. 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:

  1. Edit .env and set DEBUG to False, create a new Django secret key and configure database credentials if needed.
  2. Run docker compose up --build. The website will be served on port 80.

If testing:

  1. 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.