- Clone the repository:
$ [email protected]:Vlad0n20/MD-Digital-test-task.git
- Populate env.example and end.db.example files and rename it on .env and .env.db
- Build and run containers with command:
$ make build_containers
- Populate the database with command if you want to generate new data:
if you want to use existing data:
$ make populate_db_in_container
$ make load_data_in_container
- Create superuser with command if you use docker-compose:
$ make create_admin_in_container
- Clone the repository:
$ [email protected]:Vlad0n20/MD-Digital-test-task.git
- Populate env.example and end.db.example files and rename it on .env and .env.db
- If you don't have installed poetry, you can find how to do it here https://python-poetry.org/docs/
- Install dependencies with command:
$ poetry install
- Activate virtual environment with command:
$ poetry shell
- Run project with command:
$ /bin/bash start
- Populate the database with command if you want to generate new data:
if you want to use existing data:
$ python manage.py populate_db
$ python manage.py loaddata fixtures/user.json $ python manage.py loaddata fixtures/group.json
- Create superuser with command:
$ python manage.py createsuperuser
Now you can use the application.
By http://0.0.0.0:8000/swagger/ - there is a swagger documentation for app.