Development Setup

Local Setup

  1. Install Docker CE 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. Go to http://127.0.0.1:8082/ to see the frontend / polymer running. The Django app is running under

    http://127.0.0.1:8082/api/

  5. Login to backend using fab ssh:backedand create admin with python manage.py createsuperuser

  6. Go to http://127.0.0.1:8082/api/admin/ login with your credentials.

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

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

Helpful Commands

Here are some docker tips:

display all containers:

$ docker ps

ssh into running django_api container

$ fab ssh:backend

stop all containers

$ fab stop_docker_containers

cleanup docker system: remove all inactive containers

$ docker system prune

Last updated