mirror of
https://github.com/Ai-hack-MAGNUM-OPUS/backend.git
synced 2024-11-23 08:43:44 +03:00
Update README.md
This commit is contained in:
parent
8beb76fa77
commit
2bf771e3a2
35
README.md
35
README.md
|
@ -1,3 +1,36 @@
|
||||||
# backend
|
# 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
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user