Wiki Spaces
Documentation
Projects
Resources
Get Help from Others
Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack
OpenMRS SDK allows you to create a module quickly, with all the necessary module directories and files automatically generated for you. You only need to specify the type of module, and module ID at prompt.
Before you you can create your first OpenMRS module, you need to:
If you have not already created an OpenMRS server, see Set Up OpenMRS Server with OpenMRS SDK and Docker for instructions.
To create your first OpenMRS module, follow these steps:
Open your command line window or terminal window, type:
mvn openmrs-sdk:create-project
Add the following to the end of myfirstmodule.gsp:
<div>Hello world! This is my first <b>OpenMRS</b> module!</div>
After you’ve successfully created your first module, you need to build it.
To compile your first module, type:
mvn clean install
At the end of the build, a success message displays.
Now that you have successfully built your first OpenMRS module, you can deploy it to the server.
Now you are ready to see the first module you built!
In your browser, type in the Url:
localhost:8080/openmrs/myfirstmodule/myfirstmodule.page
Your hello world message displays at the bottom of the page:
Take a look at this comprehensive example to learn how to customise your first module