Pull requests are always welcome.
-
Install dependant packages (postgresql >= 9.2)
-
Ubuntu Linux:
Install postgresql (http://www.postgresql.org/download/) Install nodejs to use npm (http://nodejs.org/download/) Install Redis (http://redis.io/download) # apt-get update # apt-get install python python-dev python2.7 libpq-dev libevent-dev # npm install less uglify-js@1 -g
-
Mac OS X:
Install Homebrew (http://mxcl.github.com/homebrew/) Install nodejs to use npm (http://nodejs.org/download/) Install Redis (http://redis.io/download) # brew install python postgresql libevent # initdb /usr/local/var/postgres -E utf8 # npm install less uglify-js@1 -g
-
-
Install pokr
$ sudo make install
-
Create Database
-
Create & modify configuration files:
make init
- settings.py
- alembic.ini
ID_HERE
: postgres idPASSWD_HERE
: postgres pwHOST_HERE
: postgres host
-
Initialize Database
$ make init\_db
-
Bills
$ ./shell.py bill update "some/where/*.json" # from files $ ./shell.py bill update --source redis # from Redis queue $ ./shell.py bill update --source db # existing bills of the current session
-
Bill Keywords
$ ./shell.py bill_keyword update "some/where/*.txt"
-
Candidacies
$ ./shell.py candidacy update "some/where/*.json"
$ ./run.py [-d] [-l LOCALE] [--port PORT]