Skip to content

Latest commit

 

History

History
39 lines (36 loc) · 1 KB

README.md

File metadata and controls

39 lines (36 loc) · 1 KB

Setup

  1. Clone the repository:

    $ git clone [email protected]:Vlad0n20/Yazz-Services-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. 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
  5. 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.