redcross
v0.0.6
Published
An API for RedCross shelters. This module downloads shelters and stores them in a mongo database.
Downloads
4
Maintainers
Readme
RedCross node
An API for RedCross shelters. This module downloads shelters and stores them in a mongo database.
Development
# install node modules
npm install
# if you want to compile CoffeeScript
cake build
# run the app
node app
Config
Set mongo and update schedule times here. Mongo URI can also be set with the environment variable MONGO_URI
cronUpdateSchedule
All active shelters
http://localhost:8080/redcross/shelters/?active=true
All shelters sorted from closest to farthest
http://localhost:8080/redcross/shelters/:lat/:long/