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.
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.