https://github.com/openspending/slovakia.openspending.org
Cooperation with TI Slovakia to map municipal budgets in the country.
https://github.com/openspending/slovakia.openspending.org
Last synced: 6 months ago
JSON representation
Cooperation with TI Slovakia to map municipal budgets in the country.
- Host: GitHub
- URL: https://github.com/openspending/slovakia.openspending.org
- Owner: openspending
- Created: 2012-12-18T14:49:32.000Z (over 13 years ago)
- Default Branch: gh-pages
- Last Pushed: 2015-06-30T04:42:50.000Z (almost 11 years ago)
- Last Synced: 2024-04-08T16:29:32.988Z (about 2 years ago)
- Language: JavaScript
- Size: 6.54 MB
- Stars: 6
- Watchers: 12
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Municipal Budgets of Slovakia
=============================
This contains the web frontend to the Slovakia budget site, a front-end
to the OpenSpending platform.
Initialize the repository
-------------------------
To run the site for local development, follow these steps:
* Install [Jekyll](https://github.com/mojombo/jekyll/wiki)
* Make sure you're on the branch gh-pages
* Fetch the openspendingjs submodule with:
* `git submodule init`
* `git submodule update`
Generate the site
-----------------
The site can be generated with this command from the repository root:
jekyll --server --auto
This will run an HTTP server at port 4000 to serve the site.
Embedding this on your own page
-------------------------------
The treetable visualization in this site just needs what's contained in
[this file](slovakia.openspending.org/blob/gh-pages/municipality/index.html).
Copy its contents in the page where you want the visualization added, and
fix the scripts' paths.
Don't forget to change
OpenSpending.scriptRoot = "{{site.openspendingjs}}"
to your [openspendingjs](https://github.com/openspending/openspendingjs) copy's
URL.
Everything should work now. To see some dataset, you need to pass its name in
the URL's hash. For example, say that my page is in
http://slovakia.openspending.org/municipality/ and my dataset is called "kosice".
To view it, I would link to http://slovakia.openspending.org/municipality/#kosice.