not really known
Go to file
2022-10-09 09:32:30 +03:00
app updated tg api link 2022-10-09 09:32:30 +03:00
compose/production added celery, postgres, whitenoise to docker 2022-10-09 09:28:44 +03:00
requirements added celery, postgres, whitenoise to docker 2022-10-09 09:28:44 +03:00
.dockerignore added celery, postgres, whitenoise to docker 2022-10-09 09:28:44 +03:00
.editorconfig added celery, postgres, whitenoise to docker 2022-10-09 09:28:44 +03:00
.env.example added docker 2022-10-09 07:43:08 +03:00
.gitignore inited django 2022-10-07 22:15:12 +03:00
Dockerfile added celery, postgres, whitenoise to docker 2022-10-09 09:28:44 +03:00
production.yml added celery, postgres, whitenoise to docker 2022-10-09 09:28:44 +03:00
pytest.ini added celery, postgres, whitenoise to docker 2022-10-09 09:28:44 +03:00
README.md updated README 2022-10-09 09:31:03 +03:00
setup.cfg added celery, postgres, whitenoise to docker 2022-10-09 09:28:44 +03:00

backend

Веб-сервер, для обработки и хранения информации о пользователях и их операциях

Стек технологий:

  • Django, DRF, Channels
  • Celery
  • Celery Beat
  • Postgresql
  • Swagger

Сборка из исходного кода

Установка зависимостей

$ python3 -m venv venv
$ source venv/bin/activate
$ cd app
$ pip install -r reuirements/base.txt
$ mv .env.example .env

Подготовка бд

$ python3 manage.py makemigrations && python3 manage.py migrate users
$ python3 manage.py migrate
$ python manage.py loaddata departmens.json 

Запуск веб сервера

$ python3 manage.py runserver

Запуск celery

$ celery -A conf worker --loglevel=INFO

Запуск через docker

$ docker-compose -f production.yml up