Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 886 Bytes

README.md

File metadata and controls

32 lines (29 loc) · 886 Bytes

settings-app

DHIS2 Settings App

Pre-requisites

Since the app uses webpack as a build tool you will need to install this first.

npm i -g webpack webpack-dev-server

Running the dev server

The following command will start the development server which uses CORS to communicate with a DHIS2 instance.

webpack-dev-server
# or
npm start

For this to properly work you will need to add a dev_manifest.webapp to the root of your application. The following snippet shows an example of such a manifest. In addition to that you need to add http://localhost:8081 url to your DHIS2 CORS whitelist. (This can be done in the settings app)

{
  "activities": {
    "dhis": {
      "href": "http://localhost:8080/dhis"
    }
  }
}

Building the project

To build a production version of the application run the following command.

npm run build