unicef / magicbox-maps

Map mobility data in a NodeJS + React front-end application with data served by magicbox-open-api
http://magicbox-maps.azurewebsites.net
BSD 3-Clause "New" or "Revised" License
11 stars 11 forks source link

Load full school data #77

Closed rdebeasi closed 6 years ago

rdebeasi commented 6 years ago

This PR adds a config file so that we can easily switch the paths to data files. That makes it easier to switch to from files to an API in the future. The application now loads all school data (rather than a few representative points) from a temporary Azure blob store.

In the future, this should be replaced by long-term file storage, and potentially connected to a simple API.

rdebeasi commented 6 years ago

I've made the changes we discussed yesterday. The file paths now live in environment variables. See the readme for more details.

This setup has a few benefits:

I've set the appropriate environment variables in OpenShift. When building in another environment (e.g., Jenkins on Auzre), don't forget to set the environment variables there.

To keep the old URL from appearing in history, please merge this PR as a "squash" commit and delete the branch afterwards.