Skip to content

HISPSA/reports-app

 
 

Repository files navigation

DHIS2 Reports App

Build Status FOSSA Status

Contributing

If you want to contribute to this code base, there is documentation in the docs directory. You can start by reading the general docs

Pre-requisites

  • DHIS2 instance;
  • node v9.3.0+;
  • yarn v1.3.2+;

Running the dev server

  • Make a copy of file .env.template
  • Rename it to .env.development.local
  • Update the base url in this file if your DHIS2 installation is not available at http://localhost:8080. For example, if your DHIS2 installation is available at http://localhost:5000:
    REACT_APP_DHIS2_BASE_URL=http://localhost:5000
    
  • Update your api version if your DHIS2 api version does not match the api version in package.json at manifest.webapp.dhis2.apiVersion
  • Add http://localhost:3000 url to your DHIS2 CORS whitelist. (This can be done in the settings app)
  • Execute the following commands:
    yarn install
    yarn start
  • Login to your DHIS2 instance in your browser
  • Open your browser at http://localhost:3000

Building the project

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

yarn build

Unit testing

To execute unit tests run the following command:

yarn test

E2e testing

To execute end to end tests run the following command:

export DHIS2_BASE_URL=http://your_dhis2_instance.com/
yarn test-e2e

You must have the dev server running on port 3000, as explained previously.

License

FOSSA Status

About

DHIS2 Reports App

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 96.9%
  • Gherkin 2.8%
  • HTML 0.3%