Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.26 KB

README.md

File metadata and controls

41 lines (32 loc) · 1.26 KB

Graphs and visualizations related to COVID-19

Usage

To run a web server, run docker-compose in the root directory of the repository.

docker-compose up --build # Optionally add -d for daemon

You can then access the server locally at localhost:8081.

Alternatively, you can install the libraries and run the server locally, see below.

Local development

Create a virtual environment with all development dependencies:

./setup_environment.sh
source .venv/bin/activate # Don't forget to activate the environment
./run_tests.sh
./format_code.sh # Helper script to do code autoformat. The format is checked by tests.

To run a web server:

covid_web.run_server -d ../data/ -p ../data/predictions/

For quick development or data examination, running standalone graphs can be useful.

covid_graphs.show_country_plot ../data/Spain.data
covid_graphs.show_scatter_plot ../simulation/Slovakia.data polynomial.sim
covid_graphs.show_heat_map exponential.sim
covid_graphs.calculate_posterior ../data/Germany.data 5

To create static data used for our REST service:

covid_web.generate_static_rest ../data ../web/react-web/public/rest/

All the commands above can be called with --help option for additional information.