/icare

The icare Project

Primary LanguageTypeScriptGNU Lesser General Public License v2.1LGPL-2.1

iCare

Prerequisites

  1. NodeJs (10 or higher)
  2. npm (6.4.0 or higher), can be installed by running apt install npm
  3. git, can be installed by running apt install git

Setup

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

Development server

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

Build

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.

Running unit tests

Running end-to-end tests

Further help