https://github.com/vinitshahdeo/covid19api
Playing with GraphQL and COVID-19 API! Checkout the related COVID-19 Tracker for India.
https://github.com/vinitshahdeo/covid19api
coronavirus-info coronavirus-tracking covid-19 covid-19-india covid-19-tracker covidapi hacktoberfest
Last synced: about 1 month ago
JSON representation
Playing with GraphQL and COVID-19 API! Checkout the related COVID-19 Tracker for India.
- Host: GitHub
- URL: https://github.com/vinitshahdeo/covid19api
- Owner: vinitshahdeo
- License: mit
- Created: 2020-06-17T14:31:10.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T03:44:58.000Z (over 2 years ago)
- Last Synced: 2025-03-24T05:51:42.771Z (about 2 months ago)
- Topics: coronavirus-info, coronavirus-tracking, covid-19, covid-19-india, covid-19-tracker, covidapi, hacktoberfest
- Language: JavaScript
- Homepage: https://vinitshahdeo.github.io/covid19api/
- Size: 2.58 MB
- Stars: 33
- Watchers: 6
- Forks: 27
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
COVID-19 🦠API:mask:
A GraphQL Express Server powered by @covid19india/api to provide COVID-19 related stats for India :india:
COVID-19 Tracker ღ Dashboard
## Setup
```bash
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](#queries) and enjoy! :smile:
- Run `npm run server` for local development
## Queries
#### `GET` overall COVID-19 stats
```graphql
{
total {
active
confirmed
deaths
recovered
}
}
```#### `GET` statewise COVID-19 stats
```graphql
{
statewise {
state
active
confirmed
deaths
recovered
}
}
```#### `GET` datewise COVID-19 stats
```graphql
{
datewise {
date
dailyconfirmed
dailydeceased
dailyrecovered
}
}```
## Dependencies Used- [express](https://www.npmjs.com/package/express): A web application framework for [Node.js](https://nodejs.org/)
- [graphql](https://www.npmjs.com/package/graphql): The JavaScript reference implementation for [GraphQL](https://graphql.org/)
- [express-graphql](https://www.npmjs.com/package/express-graphql): A GraphQL HTTP Server middleware
## Related Work
- [COVID-19 Tracker - INDIA](http://corona-cases-india.netlify.com/) - 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.- [India Fights Corona - Get current COVID-19 stats](https://indiafightscorona.netlify.app/)!
- [COVID-19 Tracker - Homepage](https://vinitshahdeo.github.io/COVID19/)
- An [Open Letter](https://github.com/vinitshahdeo/Water-Monitoring-System/issues/236) to all the contributors - [STAY HOME, STAY SAFE!](https://github.com/vinitshahdeo/COVID19)
## License
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fvinitshahdeo%2Fcovid19api?ref=badge_large)
## `< />` with ♡ by
[](https://fayz.in/stories/s/1522/0/?ckt_id=ZGL1ZGVk&title=story_of_vinit_shahdeo)[](https://indiafightscorona.netlify.app/)[](https://github.com/vinitshahdeo/COVID19)[](https://www.linkedin.com/in/vinitshahdeo/)[](http://corona-cases-india.netlify.com/)[](http://corona-cases-india.netlify.com/)[](https://github.com/vinitshahdeo)[](https://fayz.in/stories/s/1522/0/?ckt_id=ZGL1ZGVk&title=story_of_vinit_shahdeo)
#### [Vinit Shahdeo](https://www.eatmy.news/2020/06/code-like-you-eat-i-mean-code-daily-as.html)
[](https://github.com/vinitshahdeo)
## Leave a :star:
Check out **@vinitshahdeo/[COVID19](https://github.com/vinitshahdeo/COVID19)** repository. **Consider leaving a star!** :heart: :hugs:
----
```javascriptif (_.isAwesome(thisRepo)) {
thisRepo.star(); // thanks in advance :p
}```
----[](https://github.com/vinitshahdeo/) [](https://twitter.com/Vinit_Shahdeo)