https://github.com/missinglink/dmon
A daemon manager and service discovery module for nodejs.
https://github.com/missinglink/dmon
Last synced: over 1 year ago
JSON representation
A daemon manager and service discovery module for nodejs.
- Host: GitHub
- URL: https://github.com/missinglink/dmon
- Owner: missinglink
- Created: 2013-03-09T19:14:51.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-09T09:21:02.000Z (about 13 years ago)
- Last Synced: 2025-03-13T02:36:32.015Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 457 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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.
```javascript
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.
```javascript
{
"name": "my-service",
"color": "blue",
"command": "node",
"args": [ "app.js", "config/local.json" ]
}
```
Screenshot
----------
