Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RobinMalfait/event-source
A node library for writing event sourced applications
https://github.com/RobinMalfait/event-source
Last synced: 17 days ago
JSON representation
A node library for writing event sourced applications
- Host: GitHub
- URL: https://github.com/RobinMalfait/event-source
- Owner: RobinMalfait
- License: mit
- Created: 2020-02-02T20:19:29.000Z (almost 5 years ago)
- Default Branch: develop
- Last Pushed: 2023-12-28T23:41:59.000Z (12 months ago)
- Last Synced: 2024-12-07T02:01:00.153Z (19 days ago)
- Language: TypeScript
- Size: 841 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Event Source
![Node CI](https://github.com/RobinMalfait/event-source/workflows/Node%20CI/badge.svg)
A node library for writing event sourced applications.
## Usage
```js
import {
Aggregate,
Command,
Event,
abort,
createEventMapper,
createEventSource,
createProjector,
createTestEventStore,
} from '@robinmalfait/event-source'
```## Local Development
Below is a list of commands you will probably find useful.
### `pnpm start`
Start the build in watch mode, which makes it easy to make incremental builds.
### `pnpm build`
Build the package!
### `pnpm test`
Runn all the tests!