0.0.6 • Published 10 years ago

redcross v0.0.6

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

RedCross node

NPM version Build Status Dependencies 

An API for RedCross shelters. This module downloads shelters and stores them in a mongo database.

Deploy to Bluemix

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/