node-microservices

1.0.1 • Public • 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 })
control.add("service1", require.resolve("./service1"))
//service1.js
module.exports = {
    start: () => {
        return new Promise((resolve, reject) => {
            resolve();
        })
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i node-microservices

Weekly Downloads

4

Version

1.0.1

License

ISC

Last publish

Collaborators

  • arvitaly