Skip to content

A visual tool to explore and analyze the potential impacts of COVID-19

License

Notifications You must be signed in to change notification settings

markolalovic/covid-calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The source code for COVID Calculator - A visual tool to explore and analyze the potential impacts of COVID-19

Link to the tool: https://covidcalc.pages.dev/


How-to

Data - the tool comes preloaded with all the data for visualizations: see the python scripts in src directory.

App.svelte - main component for the user interface made in Svelte:

  • imports data from stores.js previously created by prepare_*_data.py scripts
  • reactively calculates estimates for chosen parameters

Visualizations are made using D3 and live in separate Svelte components.

Compile in order to convert it to JavaScript.

Note that you will need to have Node.js installed.

Local build

Install the dependencies...

cd covid-calc
npm install

...then start Rollup:

npm run dev

Navigate to localhost:5000. You should see the app running.

Building and running in production mode

To create an optimised version of the app:

npm run build