vostpt / covid19-mobile

"EstamosOn - Covid19" - Mobile App made with Flutter to inform citizens about Covid19 status in Portugal
https://covid19estamoson.gov.pt/
GNU Lesser General Public License v3.0
30 stars 8 forks source link

Add new statistics endpoint #253

Closed OldMetalmind closed 4 years ago

OldMetalmind commented 4 years ago

Closes #252

Description The new statistics endpoint has more information about the current status of Covid in Portugal

This is a Work In Progress issue, after this PR, we need to build the new statistics UI and improve the Models created.

How To Test Since the endpoint is not in production or even deployed, it is necessary to build the Dockerfile from the following project: https://github.com/dssg-pt/Docker_COVID_API

With the respective container of the docker image running. Update the class StatusDevApi with the host to your machine IP running the container.

Instructions:

git clone https://github.com/dssg-pt/Docker_COVID_API
cd Docker_COVID_API
docker build -t covid_api .
docker run -it --name some_covid_api -p 8001:5001 covid_api

Changes ✅ Add CovidStatus APIService, Model, and Provider ✅ Add to AppBloc ✅ Add bloc call in Statistics Screen ✅ dartfmt @ root ⚠️ no tests added