Indonesian | English
This repository stores the tools used to create dekontamination.com, an API service for data on the development of COVID-19 in Indonesia.
Currently, Decontamination is used as a data source for sites such as KawalCovid19.id and KabarVirus. By changing the contents of the repository as needed, you can run your own API service to disseminate COVID-19 information!
Several types of data available (in JSON format):
Summary of total distribution and each province
List of official referral hospitals
The latest news about COVID-19
Latest hoax news (from turnbackhoax.id)
NOTE : COVID-19 exposure data is extracted from the official ArcGIS dashboard of BNPB (National Disaster Management Agency).
Required (minimum versions): Node.js version 10, curl version 7.58, jq version 1.5. Ubuntu/Debian users can get it by:
sudo apt install -y nodejs curl jq
How to run:
npm install npm run build
then important data will be placed in the public
directory:
$ find public/ -type f public/api/id/covid19/hoaxes public/api/id/covid19/hospitals public/api/id/covid19/news public/api/id/covid19/stats public/index.html public/ping
which of course is ready to be published as a static site, for example using Firebase Hosting, Zeit/Vercel, Surge, Netlify, Aerobatic, Render, and the like, or also placed on an HTTP server manually.
Especially for dekontamination.com, this data will be updated every 15 minutes because the npm run build
stage continues to be triggered periodically, utilizing the scheduled event feature of GitHub Actions (see documentation).
This repository contains the tools necessary to build dekontamination.com, an API service to get the latest COVID-19 development in Indonesia.
Dekontamination.com serves as the data source for sites such as KawalCovid19.id and KabarVirus. If you want to run your own COVID-19 API server, simply customize and tweak this repository and deploy the data accordingly!
Currently, some available information includes (formatted as JSON):
Summary of cases
The list of referral hospitals
Latest news articles relevant to COVID-19
Recently discovered hoaxes (from turnbackhoax.id)
NOTE : The information on COVID-19 spread is extracted from the official ArcGIS dashboard of BNPB (National Disaster Mitigation Agency).
Minimum requirements: Node.js version 10, curl version 7.58, jq version 1.5. For Ubuntu/Debian, fulfill these by installing the following packages:
sudo apt install -y nodejs curl jq
To run the data extraction:
npm install npm run build
which will place the important bits in the public
subdirectory:
$ find public/ -type f public/api/id/covid19/hoaxes public/api/id/covid19/hospitals public/api/id/covid19/news public/api/id/covid19/stats public/index.html public/ping
that can be published just like a regular static site, eg using Firebase Hosting, Zeit/Vercel, Surge, Netlify, Aerobatic, Render, etc, or served manually from any HTTP server.
Note that for dekontamination.com, the data will be updated every 15 minutes because npm run build
is triggered periodically, thanks to the scheduled event feature from GitHub Actions (check the documentation).