Covid19Zim Information Hub - Near-real time statistics and information about the COVID-19 in Zimbabwe. NB - This project is now archived but is accessible from
covid19zim.herokuapp.com
# COVID-19 in Zimbabwe
covid19zim Information Hub is a web application for accessing near-real time statistics and information about the COVID-19 in Zimbabwe.
Official statistics are gathered from the Ministry of Health and Child Care (MoHCC) in Zimbabwe. Other data sources such as WHO are also
considered. This application is independently developed and not affiliated with any government organisation.
Online version available at
covid19zim.herokuapp.com
## Use Cases
covid19zim Information Hub use cases:
- Confirm official cases, deaths and recoveries.
- Display contact details for the MoHCC in Zimbabwe
- Display Health Tips
- List COVID-19 resources for Zimbabwe
- Display contact details for Hospitals in Zimbabwe
## Installation (Development Environment)
In order to run covid19zim Dashboard, an environment with the following is required:
- Node.js
- Express Framework
- Bootstrap
### Steps
1. Install node dependencies.
```
$npm install
```
2. Create a Firebase Cloud Firestore DB.
- Create a collection called `stats`
- Create a document called `stats`
- Add the following fields to the `stats` document - `const_lockdown_active`,`lockdown_status`,`lockdown_current_day`,`total_negative`,`total_recovered`,`total_tested`,`total_deaths`,`total_confirmed`,`last_updated`, `response_status_flag`,`data_date`,`lockdown_total_days`
3. Create .env file and add the following variables (Firebase from Firebase Service Account, smtpServer from your
email server, and ADMIN for the user logging in via magic link).
```
FIREBASE_TYPE=
FIREBASE_PROJECT_ID=
FIREBASE_PRIVATE_KEY_ID=
FIREBASE_PRIVATE_KEY=
FIREBASE_CLIENT_EMAIL=
FIREBASE_CLIENT_ID=
FIREBASE_AUTH_URI=
FIREBASE_TOKEN_URI=
FIREBASE_AUTH_PROVIDER_X509_CERT_URL=
FIREBASE_CLIENT_X509_CERT_URL=
smtpServerFrom=
smtpServerUser=
smtpServerPassword=
smtpServerHost= #for gmail should be smtp.gmail.com
smtpServerPort= #for gmail should be 465
ADMIN_USERNAME=
ADMIN_EMAIL=
PASSPORT_ZERO_SECRET=
NODE_ENV="development" …