Awesome
<p align="center"> <a href="https://graphql.org/"><img src="./graphql.png" /></a> <br> <a href="https://vinitshahdeo.github.io/COVID19/"><img src="https://thumbs.gfycat.com/AjarFloweryJumpingbean-size_restricted.gif" width="60" height="60" /></a> </p> <h1 align="center"> <a href="https://vinitshahdeo.github.io/COVID19/">COVID-19</a> 🦠API<sup>:mask:</sup> </h1> <p align="center"> <a href="https://github.com/vinitshahdeo/covid19api/blob/master/LICENSE"> <img alt="GitHub license" src="https://img.shields.io/github/license/vinitshahdeo/covid19api?logo=github" ></a> <a href="https://app.netlify.com/sites/indiafightscorona/deploys"> <img src="https://api.netlify.com/api/v1/badges/fcfb9be7-e730-460c-8bcf-e35179e7bdcb/deploy-status" /> </a> <a href="https://github.com/NovelCOVID/awesome-novelcovid"><img alt="GitHub top language" src="https://awesome.re/mentioned-badge.svg"></a> <a href="https://github.com/vinitshahdeo/COVID19/"><img alt="GitHub top language" src="https://img.shields.io/github/languages/top/vinitshahdeo/covid19api?logo=javascript"></a> </p> <h2 align="center">A <a href="https://graphql.org/">GraphQL</a> Express Server powered by @covid19india/<a href="https://github.com/covid19india/api">api</a> to provide COVID-19 related stats for India :india: </h2> <h3 align="center"><a href="http://corona-cases-india.netlify.com/">COVID-19 Tracker</a> ღ <a href="https://indiafightscorona.netlify.app/">Dashboard</a></h3> <p align="center"> <a href="https://github.com/vinitshahdeo/COVID19/stargazers"> <img src="https://img.shields.io/github/stars/vinitshahdeo/COVID19?label=LEAVE%20A%20Star%20on%20GitHub&logo=github&style=for-the-badge" /> </a> </p> <p align="center"> <a href="https://indiafightscorona.netlify.app/"> <img src="./covid19-dashboard.png" /> </a> </p> <p align="center"> <a href="https://www.producthunt.com/posts/covid-19-tracker-india?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-covid-19-tracker-india" target="_blank"> <img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=191600&theme=light" alt="COVID-19 Tracker | India - Get real-time state wise stats of COVID-19 in India | Product Hunt Embed" style="width: 250px; height: 54px;" width="250px" height="54px" /> </a> </p>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! :smile:
-
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 :star:
Check out @vinitshahdeo/COVID19 repository. Consider leaving a star! :heart: :hugs:
if (_.isAwesome(thisRepo)) {
thisRepo.star(); // thanks in advance :p
}