Third Party Monitoring Module
  • Third Party Monitoring Module Documentation
  • INTRODUCTION
    • Glossary / Terminology
    • FAQ
    • Releases / Changelog*
    • Report an Issue / Contact us
  • PRODUCT / END-USER DOCUMENTATION
    • Overview
      • User rights and permissions
    • Third Party Monitoring Module Navigation
    • Overall User Interface
    • Third Party Monitors section
      • List of Third Party Monitors
      • TPM partner details screen
    • List of Visits section
      • List of Visits
      • Visit details
      • Statuses and corresponding actions
        • Draft
        • Assigned
        • TPM Accepted
        • TPM Rejected
        • Cancelled
        • TPM Reported
        • Sent Back to TPM
        • UNICEF Approved
      • Emails notifications flow
    • TPM workflow
  • TECHNICAL DOCUMENTATION
    • Architecture
    • Development Setup
    • Deployment / DevOps
    • Backend Module structure
    • Data Model
    • Fixtures & management commands
    • API Documentation
      • Error Handling
    • Synchronization with VISION
    • Permissions framework
    • FSM Transitions conditions
    • FSM Transitions in view
    • API Metadata
    • Serializer Mixins
    • Model Mixins
    • Tests
    • Attachments
    • Email links & Tokens Authorization
    • Frontend
      • Module structure
      • Build process
      • Tests
Powered by GitBook
On this page
  • Local Setup
  • Helpful Commands
  1. TECHNICAL DOCUMENTATION

Development Setup

PreviousArchitectureNextDeployment / DevOps

Last updated 6 years ago

Local Setup

  1. Install 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. Login to the backend using fab ssh:backend

  5. Prepare data: load fixtures & run all required commands from .

  6. Go to to see the frontend / polymer running. The Django app is running under

    ​​

  7. Create admin with python manage.py createsuperuser

  8. Go to login with your credentials.

  9. 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.

  10. 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 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
Docker CE
corresponding section
http://127.0.0.1:8082/
http://127.0.0.1:8082/api/
http://127.0.0.1:8082/api/admin/