1.0.1 • Published 8 years ago
node-microservices v1.0.1
Module for split single process in nodejs to services and reload runtime You can change source files (example, by git) and run restart service
Usage
//index.js
var nms = require("node-microservices");
var control = nms({ port: 3003 })
control.add("service1", require.resolve("./service1"))
//service1.js
module.exports = {
start: () => {
return new Promise((resolve, reject) => {
resolve();
})
}
}