Visit https://mysociety.github.io/nature-emergency.
All modern browsers are supported. Internet Explorer is not. See .browserlistrc
for details.
Requirements:
Install all dependencies and get a local server running immediately, in one command:
script/server
The site will be available at both http://localhost:4000 and http://0.0.0.0:4000.
If you want to serve locally over SSL (recommended) then generate self-signed SSL certificates with:
script/generate-ssl-certificates
Once the SSL certificates are in place, script/server
will serve the site over HTTPS, at both https://localhost:4000 and https://0.0.0.0:4000. (You will need to tell your web browser to accept the self-signed certificate.)
You can build the site to _site
(without serving it) with:
script/build
Data is generated by two Python scripts in script/
. Before running them, you’ll need to install their dependencies, eg:
python3 -m venv .venv
. .venv/bin/activate
pip install --upgrade pip
pip install -r dev-requirements.txt
You can then re-generate _data/councils.csv
by running script/generate-councils
over a HTML export of the spreadsheet collated by Climate Emergency UK, eg:
script/generate-councils --in path/to/google/sheet.html --out _data/councils.csv
_data/similarities.csv
is a simplified version of mySociety’s Local Authority Composite Similarity dataset, with GSS codes replacing three-letter-codes, and only the most similar “B” councils included for each “A” council. It was generated by script/generate-similarities
, eg:
script/generate-similarities --out _data/similarities.csv