- Initialize project.
- Updated:
- Updated:
- The last web pag has been replaced for a new one.
- Now, a response is sended as follows (in case of success):
In case of error:
{ "success": true, "error": false, "message": { "cities": [ { "name": "city_name", "cases": 100, "deaths": 20 } ] } }
{ "success": "false", "error": "true", "message": "Error while loading the data" }
- Three functions has been added in order to clean the data and send it to the frontend.
- The command to run the server has changed from
yarn start
toyarn service
.
- Updated:
- There wasn't necessary to scrape this page, now the information has been gotten from this API.
puppeteer
is not used anymore, insteadaxios
is used to perform a aGET
request to the API mentioned before.- Finally, there was a little modification to the response, in case of success:
{ "success": true, "error": false, "message": { "departments": [ { "name": "department_name", "cases": 100, "deaths": 20 } ], "totalData": { "totalCases": 174, "totalDiscarded": 169, "totalRecovered": 91, "totalDeaths": 7 } } }
- Updated:
- All the data from de Covid 19 in Peru was stored in the database of the project.
- A
get
andpost
for the/covid/peru/
endpoint was implemented.- The
post
method is used to get the data from the API and then store it to the database. - The
get
method is used to get date-specific data depending of date, so it must be called as/covid/peru/:date
.
- The
- Changed location of
gitignore
file.
- Updated:
- Allow request from everywhere.
- Added:
- Frontend branch.
- Created React App with
create-react-app
. axios
was added in order to makehttp
requests to the backend endpoints.material-ui
was added in order to stylize the app components.mapbox-gl
was added in order to implement a Peru map using a geojson file.chart.js
was added in order to make statistic charts using Peru data that reports Covid-19 cases.
- Created React App with
- Frontend branch.
- Updated:
- Minor changes.
- HotFix:
- 'Access-Control-Allow-Headers' repaired.
- HotFix:
- Date repaired.
- Updated:
- Added a function that gets
currentDate
.
- Added a function that gets
- Updated:
- Added a spinning loader.
- Fixed:
- Map card information repaired.
- Updated:
- AppBar was customized.
- Appbar input field shows all regions.
- Button with the Peru icon displays total data.
- Data per region can be displayed.
- Cases per region are sorted in descending order.
- Fixed:
- Map viewport for any device repaired.
- Updated:
- Appbar input field already works.
- The endpoints have been updated to post method.
- Hotfix:
- Deaths field repaired.
- Updated:
- Added custom colors.
- Added an search input field to sidebar.
- In desktop mode the bottom drawer shows info and statistics by date of each region. In mobile mode the dropdown section does the same thing.
- Hotfix:
- Statistic charts repaired.
- Hotfix:
- Accent marks added to the regions.
- Updated:
- Added bar charts for cases, deaths, recovered and discarded
- Added Acecom favicon.
- Updated:
- Source of currentDate was changed.
- Updated:
- Dependencies.
- Updated:
- Dependencies.
- Updated:
- Dependencies.
- Updated:
- Dependencies.