Quickstart

Use these docs if you’re trying to install the entire politico-civic project. If you don’t work at POLITICO, you probably don’t want this. Instead, install the component apps you want in your own Django project.

  1. Install global dependencies for the project:
$ brew install jq
$ pip install pipenv

Get Terraform from the project website.

  1. Create local PostgreSQL database
$ createdb civic
  1. Fill out your .env file
DATABASE_URL=“postgresql://username:password@localhost:5432/civic”
...
(get all of our API keys from someone on the team)
  1. Install local dependencies for the project:
$ pipenv install
$ pipenv shell
$ python setup.py develop
  1. Bootstrap database
$ python manage.py bootstrap_electionnight
  1. Check it out!
$ python manage.py runserver