8000 GitHub - msf-oca-his/dhis-core-app-settings: DHIS2 Settings App
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

msf-oca-his/dhis-core-app-settings

 
 

Repository files navigation

DHIS2 Settings App

Build Status

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 98.6%
  • Other 1.4%
0