Embeddable election dashboards and visualizations, powered by Django.
This project's documentation and automated build tools assume a few things about your system:
- You have GNU-Make, GCC, Git, Python 2, NodeJS and NPM installed. On Ubuntu, running
sudo apt-get install build-essential
as a first step is highly recommended. - You have VirtualEnv and VirtualEnvWrapper set up (for Python 2).
- You're using bash for your system shell and your shell sources
~/.bashrc
on startup.
- Clone this repository.
- Make a virtual environment for ElectTrick, ideally called electtrick:
mkvirtualenv electtrick
- Install all the Python requirements:
pip install -r requirements.txt
- Set up your environment variables. The easiest way to do this is use the assistant that comes in the project makefile:
make init
- Source your .bashrc again to grab those environment variables:
source ~/.bashrc