COVID-19 🦠 API😷
GraphQL Express Server powered by @covid19india/api to provide COVID-19 related stats for India 🇮🇳
A COVID-19 Tracker ღ Dashboard
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
-
graphql: The JavaScript reference implementation for GraphQL
-
express-graphql: A GraphQL HTTP Server middleware
Related Work
-
COVID-19 Tracker - INDIA - A React App with the following features:
- Graphs showing daily confirmed, recovered and deceased cases
- State-wise report presented in Map of India
- Tabular data for global corona cases
- Latest news about COVID-19
- Additional resources such as symptoms, precautions etc.
-
An Open Letter to all the contributors - STAY HOME, STAY SAFE!
License
< />
with ♡ by
Vinit Shahdeo
Leave a ⭐
Check out @vinitshahdeo/COVID19 repository. Consider leaving a star!
if (_.isAwesome(thisRepo)) {
thisRepo.star(); // thanks in advance :p
}