systemic-domain-runner

1.1.0 • Public • Published

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

  • Shutsdown the system on unhandled errors
  • Uses system-service-runner as the underlying runner by default

Usage

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

Default options

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

/systemic-domain-runner/

    Package Sidebar

    Install

    npm i systemic-domain-runner

    Weekly Downloads

    439

    Version

    1.1.0

    License

    ISC

    Last publish

    Collaborators

    • guidesmiths_bot
    • feliun
    • ulisesgascon
    • cressie176