项目作者: khatrivarun

项目描述 :
A free to use Coronavirus Data API!
高级语言: TypeScript
项目地址: git://github.com/khatrivarun/coronavirus-node.git
创建时间: 2020-04-08T13:33:46Z
项目社区:https://github.com/khatrivarun/coronavirus-node

开源协议:MIT License

下载


Coronavirus API

A free to use COVID19 data API updated time to time!

It has been built using TypeScript
using a server backend built using Express in
NodeJS environment. The data is being fetch and processed every minute to ensure accurate and updated data!

Endpoints

API requests can be made to this url: https://coronavirus-node.herokuapp.com/

  1. GET /all will provide you with data of (almost) all countries as well as total confirmed cases, deaths and total recoveries. It even fetches timeline of confirmed cases, deaths and recoveries.
  2. GET /country/:country-name will fetch you details specific to the country itself.
  3. GET /total will fetch you only total cases, deaths and recovered cases and nothing else.

    Credits

    Data is being fetched and restructured from the infamous Novel Coronavirus (COVID-19) Cases, provided by JHU CSSE every minute.
    Also big props to Omaroid as his API served me a big inspiration to built this API.

    Required Technology

  4. NodeJS

    Installation and Running

  5. git clone https://github.com/khatrivarun/coronavirus-node.git
  6. Run npm install to install all dependencies and dev dependencies.
  7. Run npm run start in project root to start up the server.
  8. All requests can then be fetched on localhost:3000

    License

    This project is licensed under the MIT License - see the LICENSE file for details.