Development Setup

Local Setup

  1. Install Docker CEarrow-up-right for your OS. Also install Fabric via pip install fabric

  2. Create .env file with the reference of.env.exampleor receive .env file from your team member.

  3. Runfab up

  4. Login to the backend using fab ssh:backend

  5. Prepare data: load fixtures & run all required commands from corresponding section.

  6. Go to http://127.0.0.1:8082/arrow-up-right to see the frontend / polymer running. The Django app is running under

    http://127.0.0.1:8082/api/arrow-up-right

  7. Create admin with python manage.py createsuperuser

  8. Go to http://127.0.0.1:8082/api/admin/arrow-up-right login with your credentials.

  9. Important! User created with superuser command will not be assosiated with any country, so frontend will fail. You need to assign the country manually in the admin panel from user edit page.

  10. And can now go to ​http://127.0.0.1:8082/tpm/ to see the frontend interface.

Helpful Commands

Here are some docker tips:

display all containers:

ssh into running django_api container

stop all containers

cleanup docker system: remove all inactive containers

Last updated