mikemccllstr / dominionstats

The code behind councilroom.com.
http://councilroom.com
11 stars 3 forks source link

dominionstats

This is the code behind http://councilroom.com. Feel free to fork it to make it do interesting new things.

The project is run by rrenaud (rrenaud@gmail.com), with contributions so far by Larry, rspeer, David Lu, and tlstyer.

Installation

Turbo frontend javascript hacking

super easy frontend modifications without any server setup::

 checkout code from github.
 google-chrome --allow-file-access-from-files
 browse to local html pages (eg, dominionstats/supply_win.html).
 edit local javascript files.

I just want access to some data!

Send (rrenaud@gmail.com) a mail and I'll see what I can do.

Long, ardous but incredibly rewarding full setup

The code depends on:

Ubuntu Installation Commands for pymongo and webpy::

 sudo pip install pymongo
 sudo easy_install web.py
 mkdir db

Run an instance of mongodb with::

 mongod --dbpath=db

After install those packages, the system can be setup by running the update_loop.py script, which will take a few hours to download one months of games logs from councilroom, and then parse through it all and load it into a database::

 python update_loop.py

And after that is down, this starts webserver running on localhost:8080::

 python frontend_local.py 

Hacking Guidelines

Python code:

Javascript code:

Got a technical problem/question/idea? You can send an email to the dev group,

https://groups.google.com/forum/?fromgroups#!forum/councilroom-dev

Happy hacking.