Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onebeyond/systemic-domain-runner
Starts systemic systems within a domain
https://github.com/onebeyond/systemic-domain-runner
hacktoberfest
Last synced: about 2 months ago
JSON representation
Starts systemic systems within a domain
- Host: GitHub
- URL: https://github.com/onebeyond/systemic-domain-runner
- Owner: onebeyond
- License: mit
- Created: 2016-07-07T08:23:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-20T11:47:08.000Z (about 1 year ago)
- Last Synced: 2024-07-27T21:24:39.948Z (about 2 months ago)
- Topics: hacktoberfest
- Language: JavaScript
- Size: 12.7 KB
- Stars: 1
- Watchers: 16
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Maintainability](https://api.codeclimate.com/v1/badges/293e99309826741b92d4/maintainability)](https://codeclimate.com/github/onebeyond/systemic-domain-runner/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/293e99309826741b92d4/test_coverage)](https://codeclimate.com/github/onebeyond/systemic-domain-runner/test_coverage)# Systemic Domain Runner
Starts [systemic](https://github.com/guidesmiths/systemic) systems within a domain## TL;DR
```js
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](https://github.com/guidesmiths/systemic-service-runner) as the underlying runner by default## Usage
```
runner(, []).start()
```### Default options
```js
{
logger: console,
runner: require('systemic-service-runner')
}
```