1.1.0 • Published 7 years ago

systemic-domain-runner v1.1.0

Weekly downloads
525
License
ISC
Repository
github
Last release
7 years ago

Systemic Domain Runner

Starts systemic systems within a domain

TL;DR

const Systemic = require('systemic')
const runner = require('systemic-domain-runner')

const system = new Systemic()
    .add('config', { foo: 1, bar: 2 })
    .add('app', require('./my-app'))
        .dependsOn('config')

runner(system).start((err, components) => {
    if (err) throw err
    console.log('Started')
})

Features

Usage

runner(<system>, [<options>]).start(<cb>)

Default options

{
    logger: console,
    runner: require('systemic-service-runner')
}