Install prerequisites:
- conda
- npm (node.js)
or
- docker
Setting up the .backend.env
file:
# .env
SECRET_KEY='<secret_key>'
DEBUG=False
ALLOWED_HOSTS='<allowed_host>, ...'
TIME_ZONE='Europe/Berlin'
POSTGRES_DB='flask_database'
POSTGRES_USER='admin'
POSTGRES_PASSWORD='<admin_password>'
POSTGRES_HOST='localhost'
POSTGRES_PORT='5432'
#CORS_ALLOW_ALL_ORIGINS=True
CORS_ALLOWED_ORIGINS='<allowed_origins>, ... '
Setting up the environment:
conda install -f environment.yml
conda activate flask
In the frontend/
directory, run:
npm install
docker compose up -d --build
or with a respective .env file:
docker compose --env-file .backend.env up -d --build
docker compose down
In frontend/
, run:
npm start