Skip to content

Data Explorer for the Open Budget Survey, built in collaboration with the International Budget Partnership.

Notifications You must be signed in to change notification settings

ljoelle/open-budget-survey

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Budget Survey Explorer

Developed in collaboration between the International Budget Partnership and the Open Knowledge Foundation. Written by Tom Rees, Hélène Durand and Tryggvi Björgvinsson.

Setup & Deployment

This is a web application developed using Brunch. To run locally:

  • Clone this repository.
  • Install Node and Brunch.
  • Run brunch watch --server in the root directory of this repo.
  • Point your browser at http://localhost:3333.

To deploy:

  • Get the above working.
  • Kill the brunch server.
  • Delete the ./public folder if one has been created.
  • Run brunch build --minify.
  • Deploy the ./public folder to your web server.

Updating the data

All the data lives in the ./data folder, along with a Pythin tool to Extract-Transform-Load it through a complicated data-massage. Outputs are:

  • ./vendor/ibp_dataset.js which is used by the javascript datatool.
  • ./app/assets/downloads/ which is filled with downloadable files.

To update the data:

  • Modify the Excel files in the ./data folder.

To get those changes processed by the tool:

  • Get Python set up on your system.
  • Install Pip, the Python package manager.
  • pip install openpyxl
  • pip install unicodecsv
  • pip install xlrd
  • You're all set up. Run python etl.py to update the tool.
  • Run the tool locally to prove it works.
  • Follow the above deployment instructions to get it ready for a live server.

About

Data Explorer for the Open Budget Survey, built in collaboration with the International Budget Partnership.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 44.9%
  • HTML 22.4%
  • CSS 16.9%
  • Python 15.6%
  • Shell 0.2%