Skip to content

Commit

Permalink
update runners in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
teunmooij committed Jul 5, 2024
1 parent 981eb13 commit c5017b8
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,14 @@ start();

There are some out of the box runners that can be used in your applications or as a reference for your own custom runner

1. [Service Runner](https://github.com/onebeyond/systemic-service-runner)
1. [Domain Runner](https://github.com/onebeyond/systemic-domain-runner)

As these runners have been written for `systemic` and expect a callback based system, we'll need to use the migration helper.
1. [Service Runner](https://npmjs.com/package/systemic-ts-service-runner)

```typescript
import { asCallbackSystem } from 'systemic-ts/migrate';
import runner from 'systemic-service-runner';
import { runner } from 'systemic-ts-service-runner';

import { initSystem } from './system';
import system from './system';

runner(asCallbackSystem(initSystem())).start((err, components) => {
if (err) throw err;
runner(system()).start().then(components => {
console.log('Started');
});
```
Expand Down

0 comments on commit c5017b8

Please sign in to comment.