MCPcopy Create free account
hub / github.com/CodeForBreakfast/eventsourcing / makeTodoEventStore

Function makeTodoEventStore

examples/todo-app/src/cli.ts:23–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21const CURRENT_USER = 'user-1' as UserId;
22
23const makeTodoEventStore = () => {
24 const store = make<EventRecord<TodoEvent, UserId>>({ baseDir: './todo-data/todos' });
25 return pipe(store, Effect.flatMap(makeFileSystemEventStore));
26};
27
28const makeTodoListEventStore = () => {
29 const store = make<EventRecord<TodoListEvent, UserId>>({ baseDir: './todo-data/todo-lists' });

Callers 1

buildServicesLayerFunction · 0.85

Calls 1

makeFunction · 0.90

Tested by

no test coverage detected