-
Install Docker and Docker Compose
-
Create a file
.env
in the root folder and set the following environment variables:DB_DATABASE
DB_USER
DB_PASSWORD
DB_PORT
-
Run these commands:
docker-compose build
docker-compose up
- To stop the project, run:
docker-compose down
- First, install the dependencies:
pip install -r requirements.txt
-
You will need a PostgreSQL database server
-
Create a file
.env
in the root folder and set the following environment variables:DB_HOST
DB_DATABASE
DB_USER
DB_PASSWORD
DB_PORT
pointing to your PostgreSQL database
-
Run the migrations to create the database structure:
python manage.py migrate
-
Install Redis
-
Add another environment variable pointing to your Redis instance:
REDIS_URL
-
Run Celery:
celery -A djangobackend worker --loglevel=INFO
celery -A djangobackend beat --loglevel=INFO
- Run the server:
python manage.py runserver
- For running tests:
python manage.py test
The frontend for this Django project is this: Angular frontend.