const app = require('express')();
const Service = require('cool-services');
const service = new Service();
service.addSource(__dirname);
app.post('/service', service.call());
app.listen(80);
$ npm install cool-services
The cool-services philosophy is to provide portable api for HTTP servers, making it a great solution for simple and complicated API, contained one or several services.
To run the test suite, first install the dependencies, then run npm test
:
$ npm install
$ npm test