Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 2.47 KB

README.md

File metadata and controls

38 lines (31 loc) · 2.47 KB

etools-partner-reporting-portal

Container build status

  • Polymer: Codefresh build status

  • PostGIS: Codefresh build status

  • Django API: Codefresh build status

  • Nginx proxy: Codefresh build status

Setup

  1. Install Docker for your OS. Also install Fabric via pip install fabric.
  2. Create .env file in django_api with the reference of .env.example or receive .env file from your team member.
  3. Run fab up !
  4. 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/
  5. Run fab fixtures - load fake data like account, core, partner and other modules!
  6. 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.

Development

Here are some docker tips:

  1. display all containers:
$ docker-compose ps
  1. ssh into running django_api container
$ fab ssh:django_api
  1. Stop all containers
$ fab stop
  1. Re-build docker images for containers
$ fab rebuild