Skip to content

Rolence/settings-app

 
 

Repository files navigation

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

About

DHIS2 Settings App

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.6%
  • CSS 1.4%
  • Other 1.0%