-
Metadata Dictionary: Spiritual successor of HMIS Dictionary (MSF OCBA / UPC)
-
Metadata Export: New home for version 3.0.0 of Advanced Metadata Export (UPC / WHO)
$ yarn install
Start development server:
$ yarn start
This will open the development server at port 8081 and will connect to DHIS 2 instance http://localhost:8080.
Use custom values passing environment variables:
$ PORT=8082 REACT_APP_DHIS2_URL="https://play.dhis2.org/dev" yarn start
Run unit tests:
$ yarn test
Run integration tests locally:
$ export CYPRESS_DHIS2_AUTH='admin:district'
$ export CYPRESS_EXTERNAL_API="http://localhost:8080"
$ export CYPRESS_ROOT_URL=http://localhost:8081
$ yarn cy:e2e:run # non-interactive
$ yarn cy:e2e:open # interactive UI
For this to work in Travis CI, you will have to create an environment variable CYPRESS_DHIS2_AUTH (Settings -> Environment Variables) with the password used in your testing DHIS2 instance.
$ yarn build-webapp
$ yarn update-po
# ... add/edit translations in po files ...
$ yarn localize
$ cp i18n/en.pot i18n/es.po
# ... add translations to i18n/es.po ...
$ yarn localize