Skip to content

CLI Script + Web GUI for COVID-19 Trends in Italy, based on the Official Data.

License

Notifications You must be signed in to change notification settings

SiMoSiMo2/covid19-italy

 
 

Repository files navigation

COVID-19 SPREADING IN ITALY

Pull Requests MIT License

What's COVID-19?

Coronavirus disease 2019 (COVID-19) is an infectious disease caused by severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2),[9] a virus closely related to the SARS virus. https://en.wikipedia.org/wiki/Coronavirus_disease_2019

How can I help prevent the spreading?

Since the virus is quite aggressive and the contamination trends are exponential, the recommended way to prevent from spreading even more is: STAYING AT HOME.

This is not an official source so please do get informed with your local authorities in regards to what measures have been put in place to contain the virus. More details on the Coronavirus disease (COVID-19) outbreak.

This repo is based on the official data released by the Protezione Civile under the CC-BY-4.0 license and the geography data by Openpolis.

Screenshot

Requirements

  • PHP 7.0+

Install

$ ./setup.sh

Run

$ ./bin/trend --help
COVID-19 ITALY - TRENDS
 ./bin/trend [--province x|--region y] [--last-week|--last-month]
$ ./bin/trend --province roma
COVID-19 TOTAL CASES IN ROMA
2020-02-24:  0
2020-02-25:  3
2020-02-26:  3 ->   +0%
2020-02-27:  3 ->   +0%
2020-02-28:  3 ->   +0%
2020-02-29:  6 -> +100%
2020-03-01:  6 ->   +0%
2020-03-02:  7 ->  +16%
2020-03-03: 14 -> +100%
2020-03-04: 29 -> +107%
2020-03-05: 42 ->  +44%
2020-03-06: 49 ->  +16%
2020-03-07: 71 ->  +44%
2020-03-08: 77 ->   +8%
2020-03-09: 91 ->  +18%
2020-03-10: 76 ->  -16%
$ ./bin/trend --region lazio
COVID-19 TOTAL CASES IN LAZIO
2020-02-24:   3
2020-02-25:   3 ->   +0%
2020-02-26:   3 ->   +0%
2020-02-27:   3 ->   +0%
2020-02-28:   3 ->   +0%
2020-02-29:   6 -> +100%
2020-03-01:   6 ->   +0%
2020-03-02:   7 ->  +16%
2020-03-03:  14 -> +100%
2020-03-04:  30 -> +114%
2020-03-05:  44 ->  +46%
2020-03-06:  54 ->  +22%
2020-03-07:  76 ->  +40%
2020-03-08:  87 ->  +14%
2020-03-09: 102 ->  +17%
2020-03-10: 116 ->  +13%

Run web interface

$ php -S 127.0.0.1:8001 -t public

Then you can browse application on http://127.0.0.1:8001/ (you can use a different port, if you prefer)

CONTRIBUTE

Any contribution is very welcomed!

NOTE: I've tried to be as much practical as possible, without going too deep with design-patterns and best-practices. At this stage I mainly focus on the functionalities, although I do refactor as often as possible.

About

CLI Script + Web GUI for COVID-19 Trends in Italy, based on the Official Data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 42.5%
  • PHP 26.8%
  • HTML 24.6%
  • CSS 5.4%
  • Shell 0.7%