Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/allain/ceeqers


https://github.com/allain/ceeqers

Last synced: 4 days ago
JSON representation

Awesome Lists containing this project

README

        

# ceeqers

An Event Sourcing library that's appreciates but is not bound to CQRS ideas.

## Dreamcode Usage (not implemented yet)
```ts
const CONFIG = ...

import EventStore from 'EventStore'

const es = new EventStore(CONFIG)
const el = new EventListener(es, {type: 'tested'})
const reduction = new EventReducer((result, event) => result + event.payload, '', {id: 'concatenation'})

es.store({ type: 'tested', payload: 'A'})
es.store({ type: 'tested', payload: 'B'})

```