Skip to content

CORONAVIRUS TRACKER API powered by CSSEGISandData John Hopkins to provide JSON response

License

Notifications You must be signed in to change notification settings

ritwbanerjee/coronavirus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coronavirus Tracker API

  • This app has been created using the data source as updated by the John Hopkins Whiting School of Engineering, and they are the absolute owner of all the data.
  • Please refer to this repository for the data soure - URL
  • The internal data sources are as follows:

- World Health Organization (WHO): https://www.who.int/
- DXY.cn. Pneumonia. 2020. http://3g.dxy.cn/newh5/view/pneumonia.
- BNO News: https://bnonews.com/index.php/2020/02/the-latest-coronavirus-cases/
- National Health Commission of the People’s Republic of China (NHC):
http://www.nhc.gov.cn/xcs/yqtb/list_gzbd.shtml
- China CDC (CCDC): http://weekly.chinacdc.cn/news/TrackingtheEpidemic.htm
- Hong Kong Department of Health: https://www.chp.gov.hk/en/features/102465.html
- Macau Government: https://www.ssm.gov.mo/portal/
Taiwan CDC: https://sites.google.com/cdc.gov.tw/2019ncov/taiwan?authuser=0
- US CDC: https://www.cdc.gov/coronavirus/2019-ncov/index.html
- Government of Canada: https://www.canada.ca/en/public-health/services/diseases/coronavirus.html
- Australia Government Department of Health: https://www.health.gov.au/news/coronavirus-update-at-a-glance
- European Centre for Disease Prevention and Control (ECDC): https://www.ecdc.europa.eu/en/geographical-distribution-2019-ncov-cases
- Ministry of Health Singapore (MOH): https://www.moh.gov.sg/covid-19
Italy Ministry of Health: http://www.salute.gov.it/nuovocoronavirus

How do you start this project

  • Once you clone this project, please create a file named .env at the root of your project directory.

  • Add the 4 links as below:

CONFIRMED=https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Confirmed.csv
DEATHS=https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Deaths.csv
RECOVERED=https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Recovered.csv
CASES_COUNTRY=https://raw.githubusercontent.com/CSSEGISandData/COVID-19/web-data/data/cases_country.csv
  • On your terminal run, npm run start
  • For getting the total confirmed count, hit http://localhost:3000/api/confirmed/
  • For getting the total recovered counts, hit http://localhost:3000/api/recovered/
  • For getting the total death counts, hit http://localhost:3000/api/deaths/
  • For getting the latest cases, hit http://localhost:3000/api/confirmed/cases

Deployments

  • This app is already deployed in Heroku.
  • Get Death Counts: https://my-corona-tracker.herokuapp.com/api/deaths
  • Get confirmed counts: https://my-corona-tracker.herokuapp.com/api/confirmed
  • Get recovered counts: https://my-corona-tracker.herokuapp.com/api/recovered
  • Get latest counts: https://my-corona-tracker.herokuapp.com/api/confirmed/cases