├── .eslintrc ├── .github └── workflows │ └── workflow.yml ├── .gitignore ├── .npmignore ├── README.md ├── babel.config.js ├── manual-releases.md ├── package.json ├── prettier.config.js ├── src ├── domain │ └── todo-list │ │ ├── TodoList.spec.ts │ │ ├── TodoList.ts │ │ ├── TodoListCommandHandlers.ts │ │ ├── TodoListCommands.ts │ │ └── TodoListEvents.ts ├── framework │ ├── AggregateRoot.ts │ ├── Command.ts │ ├── Errors.ts │ ├── Event.ts │ ├── EventStore.ts │ ├── GivenWhenThen.ts │ ├── Guid.ts │ ├── IEventStore.ts │ ├── IMessage.ts │ ├── IMessageBus.ts │ ├── MessageBus.ts │ └── Repository.ts └── projections │ ├── TodoListProjection.spec.ts │ └── TodoListProjection.ts ├── tsconfig-build.json ├── tsconfig.json └── yarn.lock /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/workflows/workflow.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/.github/workflows/workflow.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | dist/ 4 | .cache 5 | .github 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/babel.config.js -------------------------------------------------------------------------------- /manual-releases.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/manual-releases.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/package.json -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/prettier.config.js -------------------------------------------------------------------------------- /src/domain/todo-list/TodoList.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/domain/todo-list/TodoList.spec.ts -------------------------------------------------------------------------------- /src/domain/todo-list/TodoList.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/domain/todo-list/TodoList.ts -------------------------------------------------------------------------------- /src/domain/todo-list/TodoListCommandHandlers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/domain/todo-list/TodoListCommandHandlers.ts -------------------------------------------------------------------------------- /src/domain/todo-list/TodoListCommands.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/domain/todo-list/TodoListCommands.ts -------------------------------------------------------------------------------- /src/domain/todo-list/TodoListEvents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/domain/todo-list/TodoListEvents.ts -------------------------------------------------------------------------------- /src/framework/AggregateRoot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/framework/AggregateRoot.ts -------------------------------------------------------------------------------- /src/framework/Command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/framework/Command.ts -------------------------------------------------------------------------------- /src/framework/Errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/framework/Errors.ts -------------------------------------------------------------------------------- /src/framework/Event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/framework/Event.ts -------------------------------------------------------------------------------- /src/framework/EventStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/framework/EventStore.ts -------------------------------------------------------------------------------- /src/framework/GivenWhenThen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/framework/GivenWhenThen.ts -------------------------------------------------------------------------------- /src/framework/Guid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/framework/Guid.ts -------------------------------------------------------------------------------- /src/framework/IEventStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/framework/IEventStore.ts -------------------------------------------------------------------------------- /src/framework/IMessage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/framework/IMessage.ts -------------------------------------------------------------------------------- /src/framework/IMessageBus.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/framework/IMessageBus.ts -------------------------------------------------------------------------------- /src/framework/MessageBus.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/framework/MessageBus.ts -------------------------------------------------------------------------------- /src/framework/Repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/framework/Repository.ts -------------------------------------------------------------------------------- /src/projections/TodoListProjection.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/projections/TodoListProjection.spec.ts -------------------------------------------------------------------------------- /src/projections/TodoListProjection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/src/projections/TodoListProjection.ts -------------------------------------------------------------------------------- /tsconfig-build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/tsconfig-build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamHatoum/typescript-event-sourcing/HEAD/yarn.lock --------------------------------------------------------------------------------