To begin working on the OpenMRS project, me and my assigned team had to set up our work environment on our computers, which proved to be no simple task. Here is the list of steps I took in order to get it working on my computer.
- Checked the list of prerequisites we needed locally for OpenMRS
- Java 1.7 or higher
- Maven
- MySQL 5.6
- Git
- Java IDE (I used IntelliJ IDEA)
- Clone the “openmrs-core” Github repository locally
- Run “mvn clean install” in the openmrs-core directory on the command line
- Everything built fine
- Run “mvn jetty:run” in the openmrs-core/webapp directory on the command line
- Wait for the message saying it is running
- Go to http://localhost:8080/openmrs and follow the instructions
- I setup the database with demo data
- Clone the “openmrs-module-legacyui” Github repository locally
- Run “mvn clean install” in the openmrs-module-legacyui directory on the command line
- Copy the file “openmrs-module-legacyui/omod/target/legacyui-{version}-SNAPSHOT.omod” ON WINDOWS put into APPDATA/OpenMRS/modules
- Redo step 4 and refresh the page until the legacyUI loads
From the blog cs-wsu – mmoussa7wsu by mmoussa7 and used with permission of the author. All other rights reserved by the author.
