Skip to content

josketres/devices-catalog-server

Repository files navigation

Devices Catalog Server

Install & run

git clone https://github.com/josketres/devices-catalog-server.git
cd devices-catalog-server
npm install
node app.js -n `hostname`

More information

node app.js --help

API

See the specs under spec/ for examples of the API calls.

Register device

POST /api/register

Query device

GET /api/device/:id

Query all registered devices

GET /api/devices

Borrow device

POST /api/device/:id/borrower

Return device (make it available)

DELETE /api/device/:id/borrower

Running specs

Specs are created using frisby, which requires jasmine-node for the tests to be run.

sudo npm install -g jasmine-node
npm test

About

Register and borrow devices entries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published