With default configs project requires:
postgres
running on default5432
localhost port withPOSTGRES_PASSWORD=postgres_password
POSTGRES_USER=postgres
for project itself.
Project uses venv
for dependency management:
python3 -m venv venv
activate venv :
venv/bin/activate
requirements :
pip install -r requirements.txt
Copy and configure .env.prod
file.
cp .env.example .env.prod
Run server:
python3 manage.py runserver
Run worker:
celery -A sumeet_backend worker -l INFO
Run bot:
python3 manage.py bot
Project was dockerized with love.
- docker
- docker compose
- Copy and configure
.env.prod
file.
.env.example .env.prod
- Run docker-compose
docker-compose up --build