OpenSRP Web Interface (Dashboard)

Setup

  1. Setup the web Server Web Build (New) or OpenSRP Server Build (Old structure)
  2. Run the migration scripts Creating Postgres Database
  3. Clone opensrp-web-interface repo
  4. Update the properties values 
    1. hibernate.properties (PostgreSQL settings) in web/resources folder
    2. opensrp.properties in assets/configs folder
      1. Update OpenSRP and OpenMRS instance settings 
      2. Update project.entity to the implementation entity type 
  5. Run mvn clean package int he root folder.  This will emit opensrp-dashboard.war file in opensrp-web/target directory
  6. Copy the war file to the tomcat webapps directory i.e. cp opensrp-web/target/opensrp-dashboard.war /var/lib/tomcat7/webapps
    1. Deploy the dashboard, this will create a couple of tables using hibernate. These are:

      facility_worker

      facility_worker_training
      facility_worker_type
      marker
      child_growth
      weight_velocity_chart
  7. Navigate to scripts and run script_for_grow_plus.sql script in the database to create materialized views
  8. In the browser, navigate to opensrp-dashboard webapp and login. Credentials: admin/admin