Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vaibhavpandeyvpz/covid19-mohfw

Free, public API for COVID-19 cases in India, updated directly from MOHFW website.
https://github.com/vaibhavpandeyvpz/covid19-mohfw

axios coronavirus covid covid19-api covid19-data covid19-india covid19-tracker koa leveldb nodejs react

Last synced: 4 days ago
JSON representation

Free, public API for COVID-19 cases in India, updated directly from MOHFW website.

Awesome Lists containing this project

README

        

# covid19-mohfw

Example front-end: [https://vaibhavpandey.com/covid19-mohfw/](https://vaibhavpandey.com/covid19-mohfw/)

Free, public API for COVID-19 cases in India, updated directly from MOHFW website. The API has a single endpoint i.e.,
[https://covid19-mohfw.herokuapp.com/](https://covid19-mohfw.herokuapp.com/) which gives state-wise details about
coronavirus cases in India, scraped from the **homepage** of
[Ministry of Health & Family Welfare](https://www.mohfw.gov.in/).

The API is built on [Node.js](https://nodejs.org/en/) using [Koa](https://github.com/koajs/koa),
[axios](https://github.com/axios/axios) and [LevelDB](https://github.com/Level/level). It is hosted on
[Heroku](https://www.heroku.com/) cloud platform. The API database is updated automatically every 15 minutes.

## Running Locally

To run the API server locally, I assume you have [Node.js](https://nodejs.org/en/) and [yarn](https://yarnpkg.com/)
installed on your machine. Then you can clone this project and execute below command in project directory:

```shell script
yarn && npm start
```

The API will then be accessible on port `3000` e.g., [http://localhost:3000](http://localhost:3000).

---

Created by [Vaibhav Pandey](https://vaibhavpandey.com/). I hope everybody is safe staying home and we end this deadly
outbreak together by co-operating our government in following issued guidelines.