Server-side COVID-19 monitoring dashboard implemented with the Python standard library.
The application mimics the behaviour of the original React client from the covid-monitor
project, but renders HTML on the server side. It consumes a COVID data API (defaults to a
local endpoint at https://127.0.0.1:8000).
-
(Optional) Create a virtual environment.
-
Run the development server with:
python run.py
-
Navigate to
http://127.0.0.1:5000to view the dashboard.
pytestThe application understands the following environment variables:
COVID_APP_API_URL– base URL for the COVID API (defaults tohttps://127.0.0.1:8000).COVID_API_TIMEOUT– request timeout in seconds (defaults to10).COVID_CACHE_TTL– cache lifetime in seconds for API responses (defaults to600).BIND_IP– optional IP address to bind outgoing API requests to.
The WSGI application factory is available via covid_client.create_app, making it easy to
embed in larger Python projects or to provide a custom API client factory for testing.