Skip to content

aozen/covid-19

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Covid Charts

Charts that show the current number of confirmed coronavirus cases, deaths, and recoveries in Turkey.

Fetching data from an API, parsing it with jquery, and then displaying it on the frontend using chart.js.

GitHub repository where the API connection is used: coronavirus-tracker-api

Since sharing COVID information has now stopped, the API has become useless.

If project doesn't work, to see how the project looks with the old data, you can follow the steps below

old data saved on May 15, 2020. This time is very beginning of the covid days.

How it looks like

Data saved on Friday (Cuma). Thats the reason first bars are always Friday.

Covid.gif

Running

For handling CORS:

Install http-server if you don't have

npm install -g http-server

Run server on 8000:

http-server -a 0.0.0.0 -p 8000

edit the main.js 2nd line

    $.get("https://coronavirus-tracker-api.herokuapp.com/all", function(resp, status){

to

    $.get("http://localhost:8000/data/all.json", function(resp, status){

and open the http://localhost:8000/

About

Türkiye Covid-19 İstatistikleri

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published