Skip to content

Playing with GraphQL and COVID-19 API! Checkout the related COVID-19 Tracker for India.

License

Notifications You must be signed in to change notification settings

GoCorona/covid19api

 
 

Repository files navigation


COVID-19 🦠 API😷

GitHub license GitHub top language GitHub top language

A GraphQL Express Server powered by @covid19india/api to provide COVID-19 related stats for India 🇮🇳

COVID-19 Tracker | India - Get real-time state wise stats of COVID-19 in India | Product Hunt Embed

Setup

npm install && npm start

Steps Explained

  • Open terminal and run npm install

  • Run npm start

  • Open browser and go to http://localhost:8080/graphql

  • Type the queries and enjoy! 😄

  • Run npm run server for local development

Queries

GET overall COVID-19 stats

{ 
  total {
    active
    confirmed
    deaths
    recovered
  }
}

GET statewise COVID-19 stats

{
  statewise {
    state
    active
    confirmed
    deaths
    recovered
  }
}

GET datewise COVID-19 stats

{
  datewise {
    date
    dailyconfirmed
    dailydeceased
    dailyrecovered
  }
}

Dependencies Used

Related Work

License

FOSSA Status

< /> with ♡ by

Open Source Love

Leave a ⭐

Check out @vinitshahdeo/COVID19 repository. Consider leaving a star! ❤️ 🤗


if (_.isAwesome(thisRepo)) {
  thisRepo.star(); // thanks in advance :p
}

GitHub followers Twitter Follow

About

Playing with GraphQL and COVID-19 API! Checkout the related COVID-19 Tracker for India.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%