bhaden94 / Covid19-tracker-V2-API

Spring Boot API and backend for version 2 of Covid-19 tracker.
https://covid-tracker-v2.herokuapp.com/
MIT License
1 stars 0 forks source link

Route To Get Days Difference #14

Closed bhaden94 closed 3 years ago

bhaden94 commented 3 years ago

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

Another easier option: This would keep calculations on the FE, but the network data should still be pretty small.

bhaden94 commented 3 years ago

https://github.com/bhaden94/covid-19-tracker-v2-fe/issues/33

bhaden94 commented 3 years ago

Closed with PR https://github.com/bhaden94/Covid19-tracker-V2-API/pull/15