Wiki Spaces
Documentation
Projects
Resources
Get Help from Others
Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack
You can set up an OpenMRS server on your computer for testing and debugging modules. With OpenMRS SDK and Docker, you can set up the OpenMRS server very easily with a step of installing MySQL 5.6; a separate installation of MySQL server is not needed.
This instruction applies to both Windows 10 and Ubuntu.
Before start, make sure:
If you are using Windows 10, you need to use PowerShell; if you are using Ubuntu, you need to be the root user.
To enter the root user mode on Ubuntu, type the following on your terminal window:
sudo -i sudo -s
To install OpenMRS SDK on your system, type:
mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk
To test the installation, type:
mvn openmrs-sdk:help
When the installation is successful, the screen displays:
[INFO] Scanning for projects... [INFO] [INFO] ------------------< org.apache.maven:standalone-pom >------------------- [INFO] Building Maven Stub Project (No POM) 1 [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- openmrs-sdk-maven-plugin:3.13.6:help (default-cli) @ standalone-pom --- OpenMRS SDK 3.13.6
For more info, see SDK documentation: https://wiki.openmrs.org/display/docs/OpenMRS+SDK
With OpenMRS SDK, You can either install OpenMRS platform or OpenMRS distribution on your system. OpenMRS platform has no user interface. If you want to see basic OpenMRS functions, choose distribution. You can also run multiple servers of different types in parallel.
Start the installation by typing the command:
mvn openmrs-sdk:setup
SDK starts to install MySQL 5.6 in a docker container.
To run the OpenMRS server, type:
mvn openmrs-sdk:run -DserverId=your_server_id
When the server starts successfully, the output at bottom of the terminal window displays:
OpenMRS is ready for you at http://localhost:8080/openmrs/
Now you can visit the OpenMRS server.