This is the source code for the primary visualisation of the platform. A live version found here.
Is written in plain/modern Javascript (ECMAScript 2020) for now. No framework, instead traditional C-style programming pattern is enforced.
As usual, the directories contain
src
: JavaScript codestylesheets
: CSS codeviews
: HTML documentsbin
: scripts and executables
Libraries have been chosen very strictly. The big ones are:
- Mapbox GL JS
- geotiff for raster parsing
- D3js to generate interactive controls such as sliders, pie-charts, etc.
Other minor plugins/functions are used. See dependencies.tsv
.
Assumptions made:
- standard Unix-like environment (cat, sed, echo, rsync, bmake...)
- Energy Access Explorer infrastructure: database, API and website should be up and running.
The makefile
(BSDmake) contains basic tasks for development/deployment. To get
started, edit the .env
file to match your needs.
Now you can run in development mode with (bmake
in Linux):
$ make build start
This project is licensed under MIT. Additionally, you must read the attribution page before using any part of this project.