Skip to content
This repository was archived by the owner on Jul 22, 2026. It is now read-only.

Latest commit

 

History

History
42 lines (30 loc) · 736 Bytes

File metadata and controls

42 lines (30 loc) · 736 Bytes

DHIS2 App Template for Dummies

Basic DHIS2 app skeleton.

License

© Copyright

Getting started

Install dependencies

To install app dependencies:

yarn install

Compile to zip

To compile the app to a .zip file that can be installed in DHIS2:

yarn run zip

Start dev server

To start the webpack development server:

yarn start

By default, webpack will start on port 8081, and assumes DHIS2 is running on http://localhost:8080/dhis with admin:district as the user and password.

A different DHIS2 instance can be used to develop against by adding a d2auth.json file like this:

{
    "baseUrl": "localhost:9000/dev",
    "username": "john_doe",
    "password": "District1!"
}