GithubHelp home page GithubHelp logo

dhis2-taskr's Introduction

Context

Small dhis2 scripts editor/runner to automate recurring tasks.

Script in JavaScript

  • Can combine multiple api calls
  • Add filter logic, calculations
  • Reusable and customisable recipes
  • Write once - Rerun whenever you need

can display results

  • As table, Exportable as CSV
  • As a map, If coordinate, coordinates or geometry field
  • As json

can also produce files

  • xlsx
  • json
  • csv

Development

Prerequisite

install nodejs and yarn

  brew install yarn

Create a .env.development

see or take you personal user

REACT_APP_DHIS2_URL=https://play.dhis2.org/2.32.2
REACT_APP_USER=admin
REACT_APP_PASSWORD=district

Start developement mode

yarn start
Then go to http://127.0.0.1:3000/ or http://localhost:3000

Note that localhost:3000 and 127.0.0.0:3000 needs to be whitelisted in Dhis2 Settings -> Access -> CORS whitelist see https://<>/dhis-web-settings/index.html#/access

if you don't have access rights, you might want to proxy the dhis2 api request

in package.json

 "proxy": "https://mydhis2",

in .env.development

REACT_APP_DHIS2_URL=http://localhost:3000
REACT_APP_USER=xxxxxxxxxxxx
REACT_APP_PASSWORD=xxxxxxxxxxxx

Production

Install from the app store (recommanded)

Go to the app management

In the app store section, find the dhis2-taskr app and install the latest version

Once installed, click on the app

and you can run your first recipes !

Deployment to production (from source)

./ship.sh 'https://play.dhis2.org/2.31.6' 'admin' '<password>'

Official release - How to

  1. Make sure to update the CHANGELOG.md
  2. Adapt package.json and public/manifest.webapp to have the next version number
  3. Build a zip by launching ./release.sh
  4. Login in to https://apps.dhis2.org/
    • Dhis2 Taskr => new version,
    • upload the zip
    • pick to the lower dhis2 version and higher dhis2 version (we are probably compatible)
  5. Test the released app on a play instance (cfr app management, install)
  6. Version cleanup
    • don't delete the 0.0.23 version (it's the last app supporting really old dhis2 versions),
    • but you can delete perhaps other intermediate versions (except if major changes happened)

dhis2-taskr's People

Contributors

butofleury avatar dependabot[bot] avatar madoleary avatar mestachs avatar pjaspers avatar vanakenm avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

antonycode

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.