node-microservices
v1.0.1
Published
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 })
Downloads
18
Readme
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();
})
}
}