Skip to content

Commit

Permalink
Merge pull request #44 from developmentseed/develop
Browse files Browse the repository at this point in the history
Deploy v0.2
  • Loading branch information
olafveerman authored Mar 30, 2021
2 parents e33b7f3 + 05c0161 commit c79d6fa
Show file tree
Hide file tree
Showing 43 changed files with 1,417 additions and 551 deletions.
45 changes: 45 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Development

## Installation
The steps below will walk you through setting up your own instance of the project.

### Install Project Dependencies
To set up the development environment for this website, you'll need to install the following on your system:

- [Node](http://nodejs.org/) (see [.nvmrc](./.nvmrc)) (To manage multiple node versions we recommend [nvm](https://github.com/creationix/nvm))
- [Yarn](https://yarnpkg.com/) Package manager

### Install Application Dependencies

If you use [`nvm`](https://github.com/creationix/nvm), activate the desired Node version:

```
nvm install
```

Install Node modules:

```
yarn install
```

## Running the project locally

```
yarn serve
```

Compiles the javascript and launches the server making the site available at `http://localhost:9000/`
The system will watch files and execute tasks whenever one of them changes.
The site will automatically refresh since it is bundled with livereload.

*Known limitation* - changes to the Mapbox Styles do not trigger a reload. As a workaround, you can save one of the `.yml` files instead.

## Deployment
To prepare the app for deployment run:

```
yarn build
```
This will package the app and place all the contents in the `public` directory.
The app can then be run by any web server.
53 changes: 3 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,5 @@
# Africa Electrification Platform
Description to come.
The Africa Electrification Platform showcases geospatial electrification analysis conducted by the GEPAR team at the World Bank.

## Installation and Usage
The steps below will walk you through setting up your own instance of the project.

### Install Project Dependencies
To set up the development environment for this website, you'll need to install the following on your system:

- [Node](http://nodejs.org/) (see [.nvmrc](./.nvmrc)) (To manage multiple node versions we recommend [nvm](https://github.com/creationix/nvm))
- [Yarn](https://yarnpkg.com/) Package manager

### Install Application Dependencies

If you use [`nvm`](https://github.com/creationix/nvm), activate the desired Node version:

```
nvm install
```

Install Node modules:

```
yarn install
```

### Usage

#### Starting the app

```
yarn serve
```
Compiles the javascript and launches the server making the site available at `http://localhost:9000/`
The system will watch files and execute tasks whenever one of them changes.
The site will automatically refresh since it is bundled with livereload.

## Deployment
To prepare the app for deployment run:

```
yarn build
```
This will package the app and place all the contents in the `public` directory.
The app can then be run by any web server.

## Content validation
The yml files with study configuration can be validated using:

```
yarn validate
```
* interested in configuring a study? Check the [/docs](/docs) section
* want to run the project locally? Check [DEVELOPMENT](/DEVELOPMENT.md)
Binary file added content/icons/electricity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/icons/health.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 40 additions & 10 deletions content/study/posts/kenya-mb.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
],
"type": "vector"
},
"schools": {
"education": {
"tiles": [
"https://aep-tiles.staging.derilinx.com/tiles/ke/schools/{z}/{x}/{y}.pbf"
],
Expand All @@ -62,6 +62,13 @@
"minigrid": {
"data": "https://aep-tiles.staging.derilinx.com/geojson/ke/proposed_shs_market-wgs84.json",
"type": "geojson"
},
"wind": {
"tiles": [
"https://s3-eu-west-1.amazonaws.com/globalwindatlas3/tiles/250_wspd_100m/{z}/{x}/{y}.png"
],
"type": "raster",
"scheme": "tms"
}
},
"layers": [
Expand All @@ -76,6 +83,11 @@
"line-width": ["interpolate", ["linear"], ["zoom"], 6, 0.5, 12, 2]
}
},
{
"id": "wind",
"type": "raster",
"source": "wind"
},
{
"id": "11kv",
"type": "line",
Expand Down Expand Up @@ -121,39 +133,57 @@
{
"id": "substation",
"type": "circle",
"source": "substation"
"source": "substation",
"paint": {
"circle-color": "#878684"
}
},
{
"id": "transformers",
"type": "circle",
"source": "transformers",
"source-layer": "data_layer"
"source-layer": "data_layer",
"paint": {
"circle-color": "#878684"
}
},
{
"id": "transmission-stations",
"type": "circle",
"source": "transmission-stations"
"type": "symbol",
"source": "transmission-stations",
"layout": {
"icon-image": "electricity"
}
},
{
"id": "schools",
"id": "education",
"type": "circle",
"source": "schools",
"source": "education",
"source-layer": "data_layer"
},
{
"id": "minigrid-existing",
"type": "circle",
"source": "minigrid-existing"
"source": "minigrid-existing",
"paint": {
"circle-color": "#7cc03c"
}
},
{
"id": "minigrid-proposed",
"type": "circle",
"source": "minigrid-proposed"
"source": "minigrid-proposed",
"paint": {
"circle-color": "#e58f25"
}
},
{
"id": "minigrid",
"type": "circle",
"source": "minigrid"
"source": "minigrid",
"paint": {
"circle-color": "#e3e356"
}
}
]
}
22 changes: 17 additions & 5 deletions content/study/posts/kenya.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ title: Kenya Universal Access
bbox: [[ 33.893,-4.676],[41.855,5.506 ]]
zoomExtent: [ 6, 12 ]
mapConfig: ./kenya-mb.json
country: Kenya
study:
consultant: NRECA
period: 2017-2018
scope: National Least-cost geospatial plan identifying least-cost supply solutions and investment requirements to achieve universal electricity access by 2022 and maintain through 2027.
summary: The geospatial electrification planning platform populated with the latest available census data, satellite imagery, consumption estimates as well as capital and operating cost data was used to evaluate expansion options. The data used for this report was collected/provided in 2016 and projected over succeeding years to evaluate connection expansion by technology including expansion of medium voltage service (grid expansion); connection of consumers in close proximity to existing KPLC service (grid densification/intensification); expansion of mini-grid service; and off-grid stand-alone solar home system service. For the target year 2022, the geospatial planning projects indicate that the following connection thresholds can be met.
summary: The geospatial electrification planning platform populated with the latest available census data, satellite imagery, consumption estimates as well as capital and operating cost data was used to evaluate expansion options. The data used for this report was collected/provided in 2016 and projected over succeeding years to evaluate connection expansion by technology including expansion of medium voltage service (grid expansion); connection of consumers in close proximity to existing KPLC service (grid densification/intensification); expansion of mini-grid service; and off-grid stand-alone solar home system service. For the target year 2022, the geospatial planning projects indicate that the following connection thresholds can be met.
platform:
title: Kenya Energy Planning
url: https://kenya-energy-planning-geowb.hub.arcgis.com/
Expand Down Expand Up @@ -55,7 +56,7 @@ layers:
name: Distribution Transformers
category: contextual
mbLayer: transformers
info:
info: The dataset contains Distribution Transformers in Kenya.The dataset was provided by Kenya Power and Lighting Company (KPLC).
source:
name: energydata.info
url: https://energydata.info/dataset/kenya-distribution-transformers
Expand Down Expand Up @@ -110,10 +111,10 @@ layers:
source:
name: energydata.info
url: https://energydata.info/dataset/kenya-healthcare-facilities
- id: schools
- id: education
name: Schools
category: contextual
mbLayer: schools
mbLayer: education
info: School locations in Kenya. It comprises Primary and Secondary Schools. The dataset was provided by Kenya Ministry of Education.
source:
name: energydata.info
Expand All @@ -122,6 +123,7 @@ layers:
name: Overview of Off-Grid Electricity Service Areas
category: result
mbLayer: minigrid
visible: true
info: This dataset represents the locations of existing mini-grids, mini-grids under development, proposed KOSAP mini-grids, and potential SHS markets in Kenya. This is the output of preliminary GIS analysis funded by the World Bank and undertaken in 2017.
source:
name: energydata.info
Expand All @@ -139,6 +141,7 @@ layers:
name: Existing Mini-Grid Expansion Projects
category: result
mbLayer: minigrid-existing
visible: true
info: Potential expansion projects for existing mini-grids; the expansion projects were identified through a least-cost geospatial analysis undertaken over the period 2017-2018.
source:
name: energydata.info
Expand All @@ -147,7 +150,16 @@ layers:
name: New Mini-Grid Projects
category: result
mbLayer: minigrid-proposed
visible: true
info: Potential mini-grid projects; these projects were identified through a least-cost geospatial analysis undertaken over the period 2017-2018.
source:
name: energydata.info
url: https://energydata.info/dataset/kenya-potential-new-mini-grid-sites
url: https://energydata.info/dataset/kenya-potential-new-mini-grid-sites
- id: wind
name: Mean wind speed
category: contextual
mbLayer: wind
info: The mean wind speed is a measure of the wind resource. Higher mean wind speeds normally indicate better wind resources, but mean wind power density gives a more accurate indication of the available wind resource.
source:
name: Global Wind Atlas
url: https://globalwindatlas.info/
Loading

0 comments on commit c79d6fa

Please sign in to comment.