Skip to content
/ Covid Public

This is live covid tracking app. You can get the status of the covid by world , by continents and by country. It uses rapid API .

Notifications You must be signed in to change notification settings

TAbhay/Covid

Repository files navigation

CovidLive

Nodejs wrapper to call Covid API using RapidAPI

This is a basic express app which gives information about the current scenario of Covid in different parts of the world.

Pre-requisites

  1. Create your account with RapidAPI
  2. Subscribe VACCOVID - coronavirus, vaccine and treatment tracker
    • It's free to use this API with a quota of 500 requests per month free.
  3. Get your API-Key
    • You can find API-Key from the Endpoints section or settings

Clone or download

$ git clone https://github.com/TAbhay/Covid
$ npm i

To run this code

$ npm install all

$ npm run nodemon

Once started successfully, you can access endpoints using URL http://localhost:8000

Configure API Key

A sample env file is provided. Check it out in the repo.

Endpoints

Following are the endpoints to execute all functionalities of FaiRESTdb

Get HomePage

GET: http://localhost:8000

Get world data of Covid

GET: http://localhost:8000/world

Get all countries data

GET: http://localhost:8000/countries

Get specific country data

GET: http://localhost:8000/country/India/ind

Get contacts data

GET: http://localhost:8000/contact

Deploy Server to Heroku

$ npm i -g heroku
$ heroku login
...
$ heroku create
$ npm run heroku:add <your-super-amazing-heroku-app>
// remember to run this command in the root level, not the server level, so if you follow the documentation along, you may need to do `cd ..`
$ pwd
/Users/<your-name>/Covid
$ npm run deploy:heroku

BUGs or comments

Create new Issues (preferred)

To Do

About

This is live covid tracking app. You can get the status of the covid by world , by continents and by country. It uses rapid API .

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published