Skip to content

onebeyond/systemic-domain-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maintainability Test Coverage

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')
}

About

Starts systemic systems within a domain

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published