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.
Data saved on Friday (Cuma). Thats the reason first bars are always Friday.
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/