mirror of
https://github.com/Ai-hack-MAGNUM-OPUS/backend.git
synced 2024-11-21 07:46:34 +03:00
not really known
app | ||
requirements | ||
.gitignore | ||
docker-compose.yml | ||
Dockerfile | ||
README.md |
backend
Бэкенд для НПА
Стек:
- Django
- DRF
- Celery
- Postgresql
- Redis
- Swagger
Запуск через docker
$ docker-compose up -d
Установка исходного кода
$ createdb --username=postgres db
$ docker run -d --cap-add sys_resource --name rp redislabs/redis
$ python3 -m venv
$ pip install -r requirements/local.txt
$ ./manage.py makemigrations && ./manage.py migrate
$ ./manage.py loaddata paragraphtypes.json
Запуск исходного кода
$ ./manage.py runserver 0.0.0.0:8000
$ celery -A conf worker --loglevel=INFO