backend/README.md

46 lines
953 B
Markdown
Raw Permalink Normal View History

2023-05-27 11:13:41 +03:00
# Pass Finder
2023-05-28 21:41:25 +03:00
[Логика проекта и структура данных](https://www.figma.com/file/2De9jBDhNbFg8ScjKGmorY/Untitled?type=whiteboard&node-id=0%3A1&t=NGIe9sKMeVjNiK9j-1)
2023-05-27 11:13:41 +03:00
## Basic Commands
2023-05-28 21:41:25 +03:00
### Load data
be sure to create .env file in top directory(clone .env.template)
$ ./manage.py migrate
$ ./manage.py loaddata data.json
data.json can be downloaded here: https://akarpov.ru/media/passfinder/data.json
2023-05-27 11:13:41 +03:00
### Runserver
$ ./manage.py runserver_plus
### Type checks
Running type checks with mypy:
$ mypy passfinder
#### Running tests with pytest
$ pytest
### Setting Up Your Users
- To create a **superuser account**, use this command:
$ python manage.py createsuperuser
### Celery
This app comes with Celery.
To run a celery worker:
``` bash
2023-05-28 21:41:25 +03:00
celery -A config.celery_app worker -B -l warning
2023-05-27 11:13:41 +03:00
```
made with [cookiecutter-django](https://github.com/Alexander-D-Karpov/cookiecutter-django)