Relief-io / relief.io

A webapp to support the coordination of disaster relief efforts.
15 stars 10 forks source link

Relief.io

A webapp to support the coordination of disaster relief efforts.

Relief.io was started during Hack4Good: Typhoon Haiyan to help with disaster relief in the Philippines with the intent to be used in any future disaster relief efforts.

The app is built with nodejs+angular, uses firebase for the sockets and is sponsored by ObjectRocket for mongodb.

Contributing to the project

Please help out where you can, we're happy for this repo to be the base for a bunch of projects that can all live at http://relief.io or you are free to fork it and create another site.

Google Group

Join in the chat:

Hackathon page Project page

Please star the repo and spread the word on twitter! https://twitter.com/insertcoffee/statuses/399232533910409216

Setting up for development

Note: you will need node and npm installed first.

The easiest way to install node.js is with nave.sh by executing [sudo] ./nave.sh usemain 0.10

Clone the repo, enter the directory and type:

$ npm install

$ [sudo] npm install bower -g
$ bower install

$ npm start

You should now be able to access the server here: http://localhost:3000/

Project Structure

Backend

Backend Dependencies

Frontend

Frontend Dependencies

Developing a new feature

Frontend

The frontend is built with angularjs, which is pretty simple if you have experience with a javascript MVC framework. Jquery, underscore & Twitter Bootstrap are also included.

Adding information to a map

The mapping lib leafletjs is included and some example code can be found in the map feature directory. ( leaflet functions all start with L. )

Backend

The backend is built with nodejs. If you have experience with ruby or PHP etc you should be fine copy->pasting to get you started. The server is based on expressjs & the sockets are using firebase.