- NodeJs (10 or higher)
- npm (6.4.0 or higher), can be installed by running
apt install npm - git, can be installed by running
apt install git
Clone repository
git clone https://github.com/udsm-dhis2-lab/icare.gitNavigate to application root folder
cd icare/uiInstall all required dependencies for the app
npm installDuplicate proxy-config.example.json and rename the copied file to proxy-config.json
Copy the following and paste it to the file proxy-config.json
{
"/": {
"target":"https://icare.dhis2.udsm.ac.tz",
"secure": "false",
"changeOrigin": "true"
}
}Start the development server
npm startNavigate to http://localhost:4200
After making the changes to the backend we build the application so that the omod contains the backend changes by following the steps below:
Navigate to application root folder
cd omods/coreRun the following command to build the application
mvn clean package -DskipTestsUpload the omod to openmrs.