Bloodlines is just a simple posting platform for people who are willing to donate blood, powered by node.jsand hapijs web framework, mongodb for the database, It's pretty simple and no fancy stuff, just pure api.
Documentation Work in progress
- Hapi - Web framework
- Mongoose - Object Document Mapper
- JWT - Handles authentication
-
Install MongoDB
$ brew install mongodb
on Mac$ sudo apt-get install mongodb
on Ubuntu
-
Download and Run
$ git clone https://github.com/rohitdaryanani/bloodlines.git && cd bloodlines
will download the app, and cd to the folder once done.$ mongod &
to run mongodb daemon on the background$ npm install
should download and install all the dependencies- Now do
$ node app.js
to start the http server, and then go ahead and visit this url in your browserhttp://localhost:8000
To run test just tye make, this runs the make file and does the following:
- Populates DB
- Runs test's via npm test
- Cleans up DB
Copyright (c) 2014-2015 Rohit Daryanani