bhaden94 / covid19-tracker-v2-api Goto Github PK
View Code? Open in Web Editor NEWSpring Boot API and backend for version 2 of Covid-19 tracker.
Home Page: https://covid-tracker-v2.herokuapp.com/
License: MIT License
Spring Boot API and backend for version 2 of Covid-19 tracker.
Home Page: https://covid-tracker-v2.herokuapp.com/
License: MIT License
Currently I calculate days difference on the frontend. I want to move this to the backend. The route needs to handle all states/countries in one GET.
There can also be a choice of how many days difference to get. For example we could get the difference in the last day for each state/country or we could get the difference in the last 7 days for each state/country.
One option: this would move all calculation to the BE which would be nice and fast
{
alabama: 'Alabama',
alaska: 'Alaska',
arizona: 'Arizona',
etc...
}
{
Alabama: 1200,
Alaska: 1000,
Arizona: -500
}
Another easier option: This would keep calculations on the FE, but the network data should still be pretty small.
daysDifference
awayI have scheduled tasks that run to populate our DB with the new data daily. This may pose a problem with Heroku's free tier since it will sleep after 30 minutes of inactivity. Maybe there is another site I can use or maybe Heroku has a way to set up scheduled tasks.
In the source repo the recovered and active cases are no longer reported.
I need to calculate these now instead of relying on the numbers to be there.
https: //github .com/CSSEGISandData /COVID-19/issues/3773
https://github.com/bhaden94/spacex-app/blob/master/README.md
See this repo for example readme
During scheduled update time everyday I would like to perform some data validation on what is currently in the DB.
Often times there is data from the past that gets updated and I currently have no way of going back and including that data unless I clear the DB and restart the BE to populate it again with all the data.
2 ways to do this.
Also add github action and turn on wait for CI pipeline to finish in Heroku.
Transition statUtilities.tsx and Totals.tsx on the FE to use BE for totals data.
Take in rate name and state/country name as parameters.
Find the average of that rate on the respective state/country. If no state/country given then find average of rate on all.
example return for incident_rate:
{
"incident_rate": 1107.56
}
The bar chart needs data like this:
[
{
rate: 'Incident Rate',
state_country: 0,
us_world: 2568
},
{
rate: 'Mortality Rate',
state_country: 0,
us_world: 2.14,
}
]
This issue needs to handle both the rates component and the bar chart. There may need to be a few different endpoints made for it.
Currently:
Should be:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.