As I was in self-isolation, I decided to learn Crystal language
So I built this parser, which takes data from the John Hopkins University github repo, parses the csv files and exposes a JSON API
The app is deployed to Heroku, and you can access it here: https://jhu-parser.herokuapp.com/
shards build
bin/main
App accepts GET requests on port 3000 and support these routes:
GET /
- return data for all countriesGET /total
- return total statsGET /:country
- return per country stats
total
- represents latest datadiff
- increase in the last 24hrs (today-yesterday)
{
"recovered": {
"total": 246152,
"diff": 20356
},
"confirmed": {
"total": 1197405,
"diff": 101488
},
"dead": {
"total": 64606,
"diff": 5819
}
}