- Install Docker for your OS. Also install Fabric via
pip install fabric
. - Create .env file in
django_api
with the reference of.env.example
or receive .env file from your team member. - Run
fab up
! - Go to http://127.0.0.1:8080/ to see the frontend / polymer running. The Django app is running under http://127.0.0.1:8080/api/
- Run
fab fixtures
- load fake data like account, core, partner and other modules! - TEMP: Go to http://127.0.0.1:8080/api/admin/ login with admin/Passw0rd! and can now go to http://127.0.0.1:8080/app/ to see the frontend interface. Replace 'ip-reporting' or 'cluster-reporting' in the URL's to switch between the two interfaces.
Here are some docker tips:
- display all containers:
$ docker-compose ps
- ssh into running django_api container
$ fab ssh:django_api
- Stop all containers
$ fab stop
- Re-build docker images for containers
$ fab rebuild