Skip to content

Sumeet backend; webhook for telegram bot; selenium for tasks

Notifications You must be signed in to change notification settings

TumantaevBaiaman/sumeet_backend

Repository files navigation

Sumeet Backend


Local development

Initial requirements

With default configs project requires:

  • postgres running on default 5432 localhost port with POSTGRES_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

Running Localhost

Run server:

python3 manage.py runserver

Run worker:

celery -A sumeet_backend worker -l INFO

Run bot:

python3 manage.py bot

Production deployment

Project was dockerized with love.

Initial requirements

  • docker
  • docker compose

Manual deployment

  1. Copy and configure .env.prod file.
.env.example .env.prod
  1. Run docker-compose
docker-compose up --build

Releases

No releases published

Packages

No packages published