Development Setup
Local Setup
Install Docker CE for your OS. Also install Fabric via
pip install fabricCreate .env file with the reference of
.env.exampleor receive .env file from your team member.Run
fab upLogin to the backend using
fab ssh:backendPrepare data: load fixtures & run all required commands from corresponding section.
Go to http://127.0.0.1:8082/ to see the frontend / polymer running. The Django app is running under
Create admin with
python manage.py createsuperuserGo to http://127.0.0.1:8082/api/admin/ login with your credentials.
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.
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:
$ docker psssh into running django_api container
$ fab ssh:backendstop all containers
$ fab stop_docker_containerscleanup docker system: remove all inactive containers
$ docker system pruneLast updated