-
Clone the repository:
$ git clone [email protected]:Vlad0n20/Yazz-Services-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
-
After step 3 populate the database with command if you use docker-compose if you want to generate new data:
$ make populate_db_in_container
or run locally:
$ python manage.py populate_db
if you want to use existing data:
$ make load_data_in_container
or run locally:
$ python manage.py loaddata fixtures/shop.json $ python manage.py loaddata fixtures/products.json
-
Create superuser (username-admin, password-admin) with command if you use docker-compose:
$ make create_admin_in_container
or run locally:
$ python manage.py createsuperuser
Now you can use the application.