Metadata-Version: 2.1
Name: politico-civic-vote
Version: 1.0a1.dev5
Summary: Manage votes, electoral votes and delegate counts, the POLITICO way.
Home-page: https://github.com/The-Politico/politico-civic-vote/
Author: POLITICO interactive news
Author-email: interactives@politico.com
License: MIT
Download-URL: https://github.com/The-Politico/politico-civic-vote/archive/1.0a1.dev5.tar.gz
Description: ![POLITICO](https://rawgithub.com/The-Politico/src/master/images/logo/badge.png)
        
        # politico-civic-vote
        
        Votes. votes. votes. We got the votes.
        
        ### Quickstart
        
        1. Install the app.
        
          ```
          $ pip install politico-civic-vote
          ```
        
        2. Add the app to your Django project and configure settings.
        
          ```python
          INSTALLED_APPS = [
              # ...
              'rest_framework',
              'entity',
              'geography',
              'government',
              'election',
              'vote',
          ]
          ```
        
        ### Bootstrapping your database
        
        1. Ensure `PROPUBLICA_CONGRESS_API_KEY` is exported into your environment. If you don't have an API key for the ProPublica Congress API, you can request one [here](https://www.propublica.org/datastore/api/propublica-congress-api).
        
        2. Bootstrap the database.
        
        ```
        $ python manage.py bootstrap_vote
        ```
        
        ### Developing
        
        ##### Running a development server
        
        Move into the example directory, install dependencies and run the development server with pipenv.
        
          ```
          $ cd example
          $ pipenv install
          $ pipenv run python manage.py runserver
          ```
        
        ##### Setting up a PostgreSQL database
        
        1. Run the make command to setup a fresh database.
        
          ```
          $ make database
          ```
        
        2. Add a connection URL to `example/.env`.
        
          ```
          DATABASE_URL="postgres://localhost:5432/vote"
          ```
        
        3. Run migrations from the example app.
        
          ```
          $ cd example
          $ pipenv run python manage.py migrate
          ```
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet :: WWW/HTTP
Description-Content-Type: text/markdown
Provides-Extra: test
