git clone https://github.com/josketres/devices-catalog-server.git
cd devices-catalog-server
npm install
node app.js -n `hostname`
node app.js --help
See the specs under spec/
for examples of the API calls.
POST /api/register
GET /api/device/:id
GET /api/devices
POST /api/device/:id/borrower
DELETE /api/device/:id/borrower
Specs are created using frisby, which requires jasmine-node for the tests to be run.
sudo npm install -g jasmine-node
npm test