GithubHelp home page GithubHelp logo

zainfathoni / dekontaminasi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ariya/dekontaminasi

0.0 2.0 1.0 68 KB

DIY static API server for COVID-19 data in Indonesia

Home Page: https://dekontaminasi.com

License: MIT License

HTML 2.56% JavaScript 94.02% JSONiq 3.42%

dekontaminasi's Introduction

Dekontaminasi

GitHub license GitHub code size in bytes Tests Uptime Robot ratio (30 days)

Bahasa Indonesia | English


Bahasa Indonesia

Repositori ini menyimpan perkakas yang digunakan untuk membuat dekontaminasi.com, sebuah layanan API untuk data perkembangan COVID-19 di Indonesia.

Saat ini, Dekontaminasi digunakan sebagai sumber data bagi situs seperti KawalCovid19.id dan KabarVirus. Dengan mengubah isi repositori sesuai kebutuhan, Anda pun bisa menjalankan layanan API Anda sendiri untuk menyebarluaskan informasi COVID-19!

Beberapa ragam data yang tersedia (dalam format JSON):

CATATAN: Data paparan COVID-19 diekstrak dari dashboard resmi ArcGIS milik BNPB (Badan Nasional Penanggulangan Bencana).

Yang diperlukan (versi minimum): Node.js versi 10, curl versi 7.58, jq versi 1.5. Pengguna Ubuntu/Debian bisa mendapatkannya dengan:

sudo apt install -y nodejs curl jq

Cara menjalankan:

npm install
npm run build

maka data-data penting akan diletakkan di direktori public:

$ 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

yang tentunya telah siap dipublikasikan sebagai situs statik, misalnya menggunakan Firebase Hosting, Zeit/Vercel, Surge, Netlify, Aerobatic, Render, dan yang sejenisnya, ataupun juga diletakkan di sebuah server HTTP secara manual.

Khusus untuk dekontaminasi.com, data-data tersebut akan diperbarui tiap 15 menit karena tahapan npm run build terus dipicu secara berkala, memanfaatkan fitur scheduled event dari GitHub Actions (lihat dokumentasinya).


English

This repository contains the tools necessary to build dekontaminasi.com, an API service to get the latest COVID-19 development in Indonesia.

Dekontaminasi.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):

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, e.g. using Firebase Hosting, Zeit/Vercel, Surge, Netlify, Aerobatic, Render, etc, or served manually from any HTTP server.

Note that for dekontaminasi.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).

dekontaminasi's People

Contributors

ariya avatar dependabot[bot] avatar zainfathoni avatar

Watchers

 avatar  avatar

Forkers

rcdzh

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.