The scorecard app is a performance monitoring tool that allows users to track the comparative performance of indicators over time and against different organization units and/or levels. With easy to use colour coded outputs, the scorecard is meant to allow users to make data-driven decisions using the performance outlined on via the scorecard app’s outputs. The Scorecard is an application developed to operate and installed in DHIS 2 instance taking advantage of existing indicators for configurations to track. The Scorecard app must be installed in the DHIS 2 system by the user with administrative privilege and configure data entry and report based on in-country needs. Once installed, any user who has access to that particular instance of DHIS 2 will be able to create scorecards, view existing scorecards or edit scorecards developed by other users provided that they have shared that scorecard (privilege to read and write) with the logged-on user.
Download the latest version of the App via
https://github.com/hisptz/scorecard-app/releases
Go to your DHIS2 instance with the organisation units already in place,then install the downloaded app via App Management
$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sourcechh::s.list.d/yarn.list
$ sudo apt update && sudo apt install yarn
# If you are using nvm you can avoid the node installation by running
$ sudo apt update && sudo apt install --no-install-recommends yarn
# To verify yarn installation, run
$ yarn --version
$ yarn global add @dhis2/cli
# To verify d2 is installed
$ d2 --help
# Check path to yarn packages
$ yarn global bin
# Add yarn installed packages to path
# Example: export PATH=$PATH:/home/dhis/.yarn/bin
$ export PATH=$PATH:<path_to_yarn_packages>
# Check if yarn is installed
$ d2 --help
$ yarn global add @dhis2/cli-app-scripts
# To verify d2-app-scripts is installed
$ d2 --help
# Add yarn installed packages to path
$ export PATH=$PATH:<path_to_yarn_packages>
To create a new template application (or upgrade and existing React app), use the d2-app-scripts init command.
$ d2-app-scripts init app-name
$ cd app-name
#To start app
$ yarn start
Local server should whitelist
localhost:4200 in system settings
Chrome
As of mid-July 2020, the Chrome (and Chromium) stable release channel has started to disable cross-site cookies by default. Mozilla Firefox has pushed this change to their beta channel and will likely release it to the stable channel soon.
# To enable proxying to remote server developer needs to edit SameSite Cookie Attribute when debugging app or developing app
1. Open chrome browser
2. Paste chrome://flags/#same-site-by-default-cookies in address bar
3. Set SameSite Flag to disabled
Mozilla
Firefox stable channel does not yet enforce this cookie policy, so for the moment everything should continue to work. Currently there doesn’t appear to be an easy way to disable the policy in Firefox Beta.
Safari
To disable SameSite Cookie in Safari:
1. Open Safari
2. Go to Preferences
3. Navigate to privacy
4. Uncheck “Prevent cross-site tracking” option