Visualize budgets from various levels of the German government; based on the OpenSpending API
HTML JavaScript Python CSS Other
Latest commit fc0ed2b Nov 20, 2016 @pudo pudo Winterschlaf!
Failed to load latest commit information.
offenerhaushalt Winterschlaf! Nov 20, 2016
sites fix up broken datasets Nov 20, 2016
Dockerfile Allow working directory to be mounted in Docker container Oct 31, 2014
bower.json clean up the namespace and budget JS Dec 19, 2013
colors.html Color scheme chart from OH 1.0 Dec 17, 2013
fig.yml Allow working directory to be mounted in Docker container Oct 31, 2014

OffenerHaushalt 2.0

This repository will contain the second edition of OffenerHaushalt, a front-end to OpenSpending with a focus on budgets from different levels of the German government.

Building the site

OffenerHaushalt is a simple Flask application that will be frozen to static HTML documents. The rendered (and statically saved) site can be downloaded to Amazon S3 and served from there. The following dependencies are required to build the site:

  • Python 2.x, virtualenv
  • node.js with npm, and global installs of: uglify-js, less, bower

When you have OffenerHaushalt checked out, follow these steps:

bower install
virtualenv pyenv
source pyenv/bin/activate
pip install -r requirements.txt
python develop

You can then run the site like a normal Flask application:

python offenerhaushalt/ runserver

Having verified that the application work, you can build a frozen version of all the contents in this database by running:

python offenerhaushalt/ freeze

This will make a plain HTML version of the visualizations, ready to be deployed to S3 or another file hosting platform.