Setup requires Docker.
Create a .env
file in the root of this repo with following configurations:
POSTGRES_USER=
POSTGRES_PASSWORD=
POSTGRES_DB=
POSTGRES_HOST=
POSTGRES_PORT=4201
SERVER_IP=0.0.0.0
SERVER_PORT=80
ADMIN_USER=
ADMIN_PASSWORD=
SECRET_KEY=
OFFICIAL_EMAIL=
OFFICIAL_PASSWORD=
POSTGRES_HOST
should be the IP address of your computer in your connected network.
OFFICIAL_EMAIL
and OFFICIAL_PASSWORD
should be the address and password of email which sends verification code and generated password.
Checkout the branch for a given tutorial, and run docker-compose build
or docker-compose up --build
Run docker-compose up
to see messages in the terminal. Run docker-compose start
to run the app in the background.
If encounter timeout error when setting up docker-compose for frontend then use the following in terminal before running docker-compose
export DOCKER_CLIENT_TIMEOUT=120
export COMPOSE_HTTP_TIMEOUT=120