Application to create reference data for Bahmni application
For devs -> To setup Reference data application,
-
psql -U postgres < scripts/setupDB.sql
(create database user and schema) -
mvn liquibase:update
(update db schema) -
mvn clean install
(build war) -
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 -
./scripts/vagrant-deploy.sh
(Will deploy the reference-data.war to your Vagrant's tomcat) -
./scripts/vagrant-database.sh
(Will run the Liquibase migrations on your Vagrant)
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