$ git clone https://github.com/gridcontrol/gridcontrol
$ cd gridcontrol/
$ npm install
$ GRID="GRID_NAME" API_PORT="API_PORT" node index.js
$ DEBUG="*" GRID="GrId" node index.js
Tests are made with mocha and should.
# (bash test/test.sh && ./node_modules/.bin/mocha grid-api/test/*.mocha.js)
$ npm test
# Test only one file
$ ./node_modules/.bin/mocha test/network.mocha.js
It uses JSdoc to create the API documentation.
$ npm run docs
$ google-chrome apidocs/index.html
src/ : Sources
docs/: Documentation
test/: Test file folder
var gridcontrol = require('gridcontrol');
// opts: see api doc for parameter
gridcontrol({ })
// this is the API client (grid-api)
var client = gridcontrol.client