- 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.git
Navigate to application root folder
cd icare/ui
Install all required dependencies for the app
npm install
Duplicate 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 start
Navigate 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/core
Run the following command to build the application
mvn clean package -DskipTests
Upload the omod to openmrs.