Starting up¶
Prerequisites¶
- Have PostgreSQL installed and a local database called
elections
- Have python3 installed
- Have virtualenv installed
- Have jq installed (
brew install jq
)- Have
topojson
andtopojson-simplify
installed globally
Steps¶
- Clone this repo to a local directory
- Start a virtualenv in the directory
$ virtualenv -p python3 venv
- Start the virtual environment and source any environment variables.
$ source venv/bin/activate $ source .env
- Bootstrap the database.
$ fab data.bootstrap_db
- Move to
theshow/staticapp
directory and yarn install node dependencies.
$ yarn
- Run
gulp
to start developing.
$ gulp