Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.14 KB

CONTRIBUTING.md

File metadata and controls

66 lines (45 loc) · 1.14 KB

Contributing

$ git clone https://github.com/gridcontrol/gridcontrol
$ cd gridcontrol/
$ npm install
$ GRID="GRID_NAME" API_PORT="API_PORT" node index.js

Debug logs

$ DEBUG="*" GRID="GrId" node index.js

Tests

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

Generating API documentation

It uses JSdoc to create the API documentation.

$ npm run docs
$ google-chrome apidocs/index.html

Folder structure

src/ : Sources
docs/: Documentation
test/: Test file folder

Programmatic usage

var gridcontrol = require('gridcontrol');

// opts: see api doc for parameter
gridcontrol({ })

// this is the API client (grid-api)
var client = gridcontrol.client

Repo for PR

https://github.com/gridcontrol/gridcontrol