├── .eslintrc.js ├── .gitignore ├── .prettierrc ├── README.md ├── config.ts ├── nest-cli.json ├── package.json ├── src ├── app.controller.spec.ts ├── app.controller.ts ├── app.module.ts ├── app.service.ts ├── core │ └── event-store │ │ ├── event-store.class.ts │ │ ├── event-store.interface.ts │ │ ├── event-store.module.ts │ │ ├── event-store.provider.ts │ │ └── event-store.ts ├── devices │ ├── command-handlers │ │ └── create-device.handler.ts │ ├── commands │ │ └── create-device.command.ts │ ├── controllers │ │ └── devices.controller.ts │ ├── devices.module.ts │ ├── dtos │ │ └── device.dto.ts │ ├── event-handlers │ │ └── device-created.handler.ts │ ├── events │ │ └── device-created.event.ts │ ├── models │ │ └── device.model.ts │ ├── repository │ │ └── device.repository.ts │ └── services │ │ └── devices.service.ts └── main.ts ├── test ├── app.e2e-spec.ts └── jest-e2e.json ├── tsconfig.build.json └── tsconfig.json /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/README.md -------------------------------------------------------------------------------- /config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/config.ts -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/nest-cli.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/package.json -------------------------------------------------------------------------------- /src/app.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/app.controller.spec.ts -------------------------------------------------------------------------------- /src/app.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/app.controller.ts -------------------------------------------------------------------------------- /src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/app.module.ts -------------------------------------------------------------------------------- /src/app.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/app.service.ts -------------------------------------------------------------------------------- /src/core/event-store/event-store.class.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/core/event-store/event-store.class.ts -------------------------------------------------------------------------------- /src/core/event-store/event-store.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/core/event-store/event-store.interface.ts -------------------------------------------------------------------------------- /src/core/event-store/event-store.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/core/event-store/event-store.module.ts -------------------------------------------------------------------------------- /src/core/event-store/event-store.provider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/core/event-store/event-store.provider.ts -------------------------------------------------------------------------------- /src/core/event-store/event-store.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/core/event-store/event-store.ts -------------------------------------------------------------------------------- /src/devices/command-handlers/create-device.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/devices/command-handlers/create-device.handler.ts -------------------------------------------------------------------------------- /src/devices/commands/create-device.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/devices/commands/create-device.command.ts -------------------------------------------------------------------------------- /src/devices/controllers/devices.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/devices/controllers/devices.controller.ts -------------------------------------------------------------------------------- /src/devices/devices.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/devices/devices.module.ts -------------------------------------------------------------------------------- /src/devices/dtos/device.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/devices/dtos/device.dto.ts -------------------------------------------------------------------------------- /src/devices/event-handlers/device-created.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/devices/event-handlers/device-created.handler.ts -------------------------------------------------------------------------------- /src/devices/events/device-created.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/devices/events/device-created.event.ts -------------------------------------------------------------------------------- /src/devices/models/device.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/devices/models/device.model.ts -------------------------------------------------------------------------------- /src/devices/repository/device.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/devices/repository/device.repository.ts -------------------------------------------------------------------------------- /src/devices/services/devices.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/devices/services/devices.service.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/src/main.ts -------------------------------------------------------------------------------- /test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/test/jest-e2e.json -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eliranna/event-sourcing-with-NestJS-example/HEAD/tsconfig.json --------------------------------------------------------------------------------