Pull requests are always welcome.
-
Install dependencies
-
Install node.js
-
Ubuntu
$ apt-get install postgresql-9.3 npm python-psycopg2 node-less node-uglify $ pip install -r requirements.txt $ make install
-
Mac OS X
$ brew install postgresql $ npm install less uglify-js -g $ pip install -r requirements.txt $ pip install psycopg2 $ make install
-
-
Create & modify configuration files
$ make init $ createuser postgres
- Set password for user "postgres" in PostgreSQL
- Modify
alembic.ini
ID_HERE
: postgres id (ex: postgres)PASSWD_HERE
: postgres pwHOST_HERE
: postgres host (ex: localhost)
-
Create & init DB (You should first obtain a
pokrdb.dump
from the admins: [email protected])$ sudo -u postgres psql -h localhost -U postgres -c 'CREATE DATABASE pokrdb;' $ sudo -u postgres psql -d pokrdb -f pokrdb.dump $ ./shell.py db init $ alembic stamp head
$ ./run.py [-d] [-l LOCALE] [--port PORT]
-
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"