/reference-data

Grails application to create master reference data which is propagated via atom feeds to ERP, ELIS and MRS.

Primary LanguageGroovyApache License 2.0Apache-2.0

reference-data

Build Status

Application to create reference data for Bahmni application

For devs -> To setup Reference data application,

  1. psql -U postgres < scripts/setupDB.sql (create database user and schema)

  2. mvn liquibase:update (update db schema)

  3. mvn clean install (build war)

  4. mvn grails:exec -Dcommand=run-app (run application. Grails runs the application in embedded tomcat) You should now be able to access the application at http://localhost:8080/reference-data

  5. ./scripts/vagrant-deploy.sh (Will deploy the reference-data.war to your Vagrant's tomcat)

  6. ./scripts/vagrant-database.sh (Will run the Liquibase migrations on your Vagrant)

Commands

Generate scaffolding code for a domain class (e.g. org.bahmni.referenceData.domain.PanelTest) *. mvn grails:exec -Dcommand=generate-all -Dargs=org.bahmni.referenceData.domain.PanelTest

Run the grails web application *. mvn grails:exec -Dcommand=run-app