Skip to content

Vlad0n20/MD-Digital-test-task

Repository files navigation

Setup via docker-compose

  1. Clone the repository:
    $ [email protected]:Vlad0n20/MD-Digital-test-task.git
  2. Populate env.example and end.db.example files and rename it on .env and .env.db
  3. Build and run containers with command:
    $ make build_containers
  4. Populate the database with command if you want to generate new data:
    $ make populate_db_in_container
    if you want to use existing data:
    $ make load_data_in_container
  5. Create superuser with command if you use docker-compose:
    $ make create_admin_in_container

Setup locally

  1. Clone the repository:
    $ [email protected]:Vlad0n20/MD-Digital-test-task.git
  2. Populate env.example and end.db.example files and rename it on .env and .env.db
  3. If you don't have installed poetry, you can find how to do it here https://python-poetry.org/docs/
  4. Install dependencies with command:
    $ poetry install
  5. Activate virtual environment with command:
    $ poetry shell
  6. Run project with command:
    $ /bin/bash start
  7. Populate the database with command if you want to generate new data:
    $ python manage.py populate_db
    if you want to use existing data:
       $ python manage.py loaddata fixtures/user.json
       $ python manage.py loaddata fixtures/group.json
  8. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published