Building the Visualization Locally - reichlab/covid19-forecast-hub GitHub Wiki
About
The interactive visualization was based on d3-foresight a D3.js package built by the Reich Lab. Some custom package configurations were made and the adapted d3-foresight package is called covid-d3-foresight.
Dependencies
These are automatically installed when you run the one time setup
Python Package dependencies
Step 0: One time Setup on Mac
-
Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Install python3
brew install python3
-
Run one-time setup
cd ./visualization
bash ./one-time-setup.sh
Step 1: Building locally
# if on mac
npm run build-viz-mac
# if on linux
npm run build-viz-linux
Step 2: Viewing locally
If you have Python 2.x:
cd ./visualization/vis-master/dist
If you have Python 3.x:
cd ./visualization/vis-master/dist
python3 -m http.server