0.4.1 • Published 8 years ago
xyz.monitor.basic.bootstrap v0.4.1
xyz.monitor.basic.bootstrap
This project has been created as a means for demonstrating the usage of bootstrap functions. This section of the documentations will describe how this bootstrap function works in depth.
Usage
Install the bootstrap function using
npm install xyz.monitor.basic.bootstrap
patch it to the system using:
let ms = new XYZ({...})
const port = 7777
ms.bootstrap(require('xyz.monitor.basic.bootstrap'), port)
This will automatically create a new HTTP server (using express) on port 7777 and the information of the system will be displayed there.
Note that this bootstrap function will monitor the default CALL
route by default.
Example output
Tests
Test are located in test
directory and demonstrate different usages of this bootstrap plugin. All of them will be lunched using:
npm test