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.
- Install global dependencies for the project:
$ brew install jq
$ pip install pipenv
Get Terraform from the project website.
- Create local PostgreSQL database
$ createdb civic
- Fill out your .env file
DATABASE_URL=“postgresql://username:password@localhost:5432/civic”
...
(get all of our API keys from someone on the team)
- Install local dependencies for the project:
$ pipenv install
$ pipenv shell
$ python setup.py develop
- Bootstrap database
$ python manage.py bootstrap_electionnight
- Check it out!
$ python manage.py runserver