Skip to content
An educational tool around ballot measures
Branch: master
Clone or download
Latest commit 2e8b59d May 29, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
alembic Reparsed data with some modified spreadsheets Apr 3, 2014
build Removes ./build from .gitignore. If the route is static, it makes sen… May 21, 2014
data cleaned up CSV for weird dates and other discrepancies Apr 17, 2014
doc Add mocks Mar 10, 2014
open_ballot Add gulp-browserify May 21, 2014
src
.gitignore
CHANGES.txt Changed from django to pyramid, can import ballot measures Jan 20, 2014
MANIFEST.in
README.md More on the README Apr 17, 2014
alembic.ini Changed from django to pyramid, can import ballot measures Jan 20, 2014
development.ini Disable pyramid debugtoolbar Apr 10, 2014
gulpfile.js Add gulp-browserify May 21, 2014
karma.conf.js JS hello world app Mar 7, 2014
package.json
production.ini
requirements.txt
setup.cfg
setup.py Fix setup.py for README.md Apr 10, 2014

README.md

open_ballot README

Prerequisites

  • virtualenv
  • posgresql-9.3
  • nodejs

Mac OSX

These are detailed instructions for setting up the prerequisites on OSX. Grab Homebrew as a nifty package manager for OSX. We’ll move these into a convenient shell script once we get a few volunteers to test these steps out.

Postgres

$ brew install postgres

$ createdb open_ballot

$ psql -d open_ballot -c "CREATE USER postgres with password 'postgres';"

$ psql -d open_ballot -f data/open_ballot.sql

Virtualenv

$ sudo easy_install pip

$ pip install virtualenv

$ virtualenv venv

Your virtualenv is not permanent. If you close your shell you’ll need to re-activate it:

$ source venv/bin/activate

Getting Started

Once you’ve got your prereqs and your virtualenv active, you can run these commands:

$ pip install -r requirements.txt

$ npm install

$ export PATH=./node_modules/.bin:$PATH # You’ll need to do this everytime you open your shell
#OR add it to your virtualenv's activate script

$ pip install -e /path/to/this/project

$ python setup.py develop

$ initialize_open_ballot_db development.ini

$ npm test

$ pserve development.ini

Yay! Looking forward to your pull requests :)

You can’t perform that action at this time.