Name: magicbox-maps-prototype
Owner: unicef
Description: null
Created: 2018-04-24 19:55:27.0
Updated: 2018-05-24 19:42:43.0
Pushed: 2018-05-21 20:37:20.0
Homepage: null
Size: 14718
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This application is designed to suggest schools and regions most in need of infrastructure and planning for disaster prevention and response. It is the product of an 8 week collaboration between UNICEF Innovation and Red Hat Innovation Labs. It is still a prototype.
This short video provides more detail
The app visualizes:
To help us generate and display new insights, follow the guide below to pick up new tasks and communicate with UNICEF developers.
Get started:
.env.local.sample
to .env.local
.REACT_APP_SCHOOLS_URL
variable in .env.npm install; npm start
.Here is a contribution guide to Magic Box repositories.
development
Here is a contribution guide to Magic Box repositories.
For more information on getting started, see the create-react-app guide.
We are using the development
branch as the main development branch for work on Magic Box Maps 2.0. Our development environment is deployed from this branch. Feature branches can be branched from development
and merged back up when ready.
The public/data/schools.json
file does not contain real schools as that may be sensitive information. Instead, we use a collection of around 60k points of interest located around Colombia.. The full data set is available in the private magicbox-data repo.
Warning: While we believe the population and human development index is accurate, the violence and natural disaster data is not, and we are working to improve the quality.
In the root of this project directory is a Dockerfile which can be built to deploy to a container platform (or testing locally). To build the image run the following command:
docker build -t unicef/magicbox-map .
With this image you can run it locally by running:
docker run -p 80:8080 unicef/magicbox-map
When building on a container platform, be sure to set the environment variables before building. You can set the environment variables in the build container, or you can pass the variables to the docker build command:
er build -t unicef/magicbox-map . \
ild-arg REACT_APP_SCHOOLS_URL=/data/schools.json \
ild-arg REACT_APP_SHAPES_URL=/data/mpio-hdi-pop-threats-violence.json
When adding a new environment variable, remember to include it in:
api-config.js
)To find out which environment variables are in use, see .env.local.sample
.