Name: austerity-map
Owner: FT Interactive News
Description: The map published as part of the FT Austerity Audit in 2013.
Created: 2016-02-24 16:20:08.0
Updated: 2016-02-26 11:42:17.0
Pushed: 2016-02-26 16:59:28.0
Homepage: http://ig.ft.com/austerity-map/
Size: 5225
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
npm install && bower install
to install dependencies.grunt server
and the development version (with non-minified assets) should open in your browser.Do not manually edit any of the files in app/data
. This folder contains three JSONP files that are included in the build, but should not be edited directly.
These files are generated by the grunt data
task. Before running this, you need to configure your database settings like this:
database-settings_SAMPLE.coffee
file, named database-settings.coffee
.fields.js
This file defines the cuts, measures and presets. To edit them, just edit the source file in config/fields.coffee
. Then run:
grunt data:fields
This will rebuild the app/data/fields.js
file.
deviations.js
This file contains the information about the standard deviations, mean averages, and ranges of SDUs for all of the cut/measure combinations. To regenerate it, run:
grunt data:deviations
This uses the Martin's query (saved in data/get-deviations.sql
) to build the devitations.js
file.
local-authorities-topojson.js
This is the big file containing every local authority's map shape and austerity data. It is built based on a huge GeoJSON file exported from the OS Shapefile (data/la-shapes.json
) and using the austerity data from the database. To rebuild it:
grunt data:topojson
To rebuild all three at once
grunt data
(Be aware that the topojson
part takes ages.)
grunt build
This creates the dist
folder, which contains your built project.
You may need to manually 'rev' the filenames.
grunt server
This serves a development version of the map locally, without minifying the assets.