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 memberRun
fab upGo to http://127.0.0.1:8082/ to check if the frontend / polymer is running. The Django app is running under http://127.0.0.1:8082/api/
Login to backend using
fab ssh:backedand create admin withpython manage.py createsuperuserTo prepare data, load fixtures and run all required commands from the chapter Fixtures and Management Commands.
Go to http://127.0.0.1:8082/api/admin/ login with your credentials
Important! Users created with superuser command will not be associated with any country, which could lead to the frontend issues. You need to assign the country manually in the admin panel from the user edit page.
Open http://127.0.0.1:8082/fm/ in your browser to see the frontend interface.
Helpful Commands
Here are some useful docker tips:
display all containers:
$ docker psssh into running django_api container
stop all containers
cleanup docker system: remove all inactive containers
Last updated