Update README.md

This commit is contained in:
Alexandr Karpov 2022-08-27 23:18:44 +03:00 committed by GitHub
parent 8beb76fa77
commit 2bf771e3a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,36 @@
# backend
### backend for
### Бэкенд для НПА
### Стек:
- Django
- DRF
- Celery
- Postgresql
- Redis
- Swagger
### Запуск через docker
```shell
$ docker-compose up -d
```
### Установка исходного кода
```shell
$ 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
```
### Запуск исходного кода
```shell
$ ./manage.py runserver 0.0.0.0:8000
$ celery -A conf worker --loglevel=INFO
```