0.0.9 • Published 11 years ago

dmon v0.0.9

Weekly downloads
29
License
-
Repository
github
Last release
11 years ago

Getting Started

A daemon manager and service discovery module for nodejs.

Dmon is still in development, for now there are a only few tools available to use.

Run all your services in a single window

If you have a SOA, you probably noticed the pain of opening 4 or more terminals when you get to work every day. dmon.manager() will spawn all these services in a child_process and pipe the stdout and stderr to one screen while coloring the output for easy readability.

dmon.manager example.

var path = require('path');
var dmon = require('dmon');

dmon.manager.use( dmon.middleware.logger );

// This boostrap spawns a new child process for each service listed here.
dmon.manager.load( path.resolve( './fresh8' ) );
dmon.manager.load( path.resolve( './fresh8-data' ) );
dmon.manager.load( path.resolve( './vote-api' ) );
dmon.manager.start();

dmon.json

Each service will need to have a dmon.json file in the root of it's codebase; it contains information about how to control the child process.

{
  "name": "my-service",
  "color": "blue",
  "command": "node",
  "args": [ "app.js", "config/local.json" ]
}

Screenshot

dmon

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago