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
topojsonandtopojson-simplifyinstalled 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/staticappdirectory and yarn install node dependencies.
$ yarn
- Run
gulpto start developing.
$ gulp