Somalia Electrification Platform
Electrification Platform for Somalia
Preparation
git submodule init
git submodule update
Development
To deploy the GEP stuff:
- Go back to deployment folder, and do
make up
- Go to backend/data-service/fixtures and put the the scenario in there.
- After everything done, do
make prepare-dev-db
- The server will be ready in http://localhost:9000/
To deploy geonode:
make geonode-up
- and can be opened in http://localhost/
To create new project
This project setup for somalia. You can fork this project and change the configuration for specific country. To do it:
- Fork this project
- Go to deployment/Makefile and change
PROJECT_ID
- Go to deployment/.env
- Change
COMPOSE_PROJECT_NAME=gep-somalia
to COMPOSE_PROJECT_NAME=gep-country name
without space (change space with dash)
- Open
docker-compose.yml
. On line 49-51, change 3 configurations into the country name
- Go to frontend/app/assets/scripts/config/defaults.js, change
COUNTRY
into the country name
- On the
docker-osm-setting
, put clip.geojson
file with geojson on the country.
To config GEP Frontend
This project setup for somalia. You can fork this project and change the configuration for specific country. To do it:
- If the gep suburl is not '/gep', change here : https://github.com/kartoza/global-electrification-platform-explorer/blob/3c2c70ebe5cb27d1a77c5d4a7afc2e0d4464339b/app/assets/scripts/config/production.js#L7
- Change url for sdi home in : https://github.com/kartoza/global-electrification-platform-explorer/blob/3c2c70ebe5cb27d1a77c5d4a7afc2e0d4464339b/app/assets/scripts/config/production.js#L8
- To change the cluster layer
Change the source layer in https://github.com/kartoza/global-electrification-platform-explorer/blob/3c2c70ebe5cb27d1a77c5d4a7afc2e0d4464339b/app/assets/scripts/config/defaults.js#L17
and change layer url in https://github.com/kartoza/global-electrification-platform-explorer/blob/3c2c70ebe5cb27d1a77c5d4a7afc2e0d4464339b/app/assets/scripts/config/defaults.js#L18
- To change external layers for overlay, change here
https://github.com/kartoza/global-electrification-platform-explorer/blob/3c2c70ebe5cb27d1a77c5d4a7afc2e0d4464339b/app/assets/scripts/config/externalLayers.json