Samridhi-98 / bahmni-reports

Reports web application for the Bahmni project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bahmni Reports

Hosts the reports web application for the Bahmni project

Build Status

Installing the application

  1. Clone or download this repository.

  2. Run ./mvnw clean install -DskipTests to build it

  3. Deploy the WAR file in target/bahmnireports.war

Running Integration tests

  1. Install MySQL client and server in your machine. If you already have a MySQL server available make sure that the user has the privileges to dump the database.
  2. Run: ./mvnw -DskipDump=false -DskipConfig=false clean package (note this would trigger scripts/create_configuration.sh as part of test-compile and create respective test properties under $HOME/.bahmni-reports/bahmni-reports-test.properties. You can also explicitly run scripts/create_configuration.sh to create the properties (incase if you are using IDE to run the test)
  3. This should trigger all the tests including integration (it assumes jdbc:mysql://localhost:3306/reports_integration_tests as the DB URL)

Note:

OpenMRS 2.1.6 and its corresponding schema dump is on MySql 5.6(preferred). There are breaking changes between 5.6 and 5.7

E.g. only_full_group_by is enabled by default

We are mutating global and session sql_mode as workaround to make 5.7 almost similar to 5.6. For reference check github action workflow.

About

Reports web application for the Bahmni project

License:GNU Affero General Public License v3.0


Languages

Language:Java 98.7%Language:Shell 1.0%Language:Dockerfile 0.2%Language:Batchfile 0.1%