Logo Lanfrica

ademisse/dhis2-nutrition-data-import

Domain:

healthcare

Record type:

software
Creator:
ade
Host:
App Used to Import Nutrition Data (CMAM, GMP, Screening (Child & PLW), Deworming, Vitamin A) to Ethiopian DHIS2 Implementation # Nutrition Data Import to Ethiopian implementation of DHIS2 App Used to Import Nutrition Data (CMAM, GMP, Screening (Child & PLW), Deworming, Vitamin A) to Ethiopian DHIS2 Implementation ## Setup ``` $ yarn install ``` ## Development Start development server: ``` $ yarn start ``` This will open the development server at port 8081 and will connect to DHIS 2 instance localhost. Use custom values passing environment variables: ``` $ PORT=8082 REACT_APP_DHIS2_BASE_URL="play.dhis2.org" yarn start ``` ## Tests Run unit tests: ``` $ yarn test ``` Run integration tests locally: ``` $ export CYPRESS_DHIS2_AUTH='admin:district' $ export CYPRESS_EXTERNAL_API="localhost" $ export CYPRESS_ROOT_URL=localhost $ 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. ## Build ``` $ yarn build-webapp ``` ## i18n ### Update an existing language ``` $ yarn update-po # ... add/edit translations in po files ... $ yarn localize ``` ### Create a new language ``` $ cp i18n/en.pot i18n/es.po # ... add translations to i18n/es.po ... $ yarn localize ```

Languages

Licenses