├── .env.example ├── .eslintrc.js ├── .github ├── ISSUE_TEMPLATE │ ├── BUG_REPORT.md │ └── FEATURE_REQUEST.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── codeql-analysis.yml │ └── continuous-integration.yml ├── .gitignore ├── .prettierrc ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── README.md ├── doc └── microservice-template-logo.png ├── docker-compose.yml ├── nest-cli.json ├── package.json ├── src ├── README.md ├── app.module.ts ├── database │ ├── README.md │ ├── config │ │ ├── index.ts │ │ └── type-orm-config.service.ts │ ├── database.module.ts │ └── helpers │ │ ├── enums │ │ ├── db-error-codes.enum.ts │ │ └── index.ts │ │ ├── index.ts │ │ ├── interfaces │ │ ├── error-object.interface.ts │ │ └── index.ts │ │ └── validate-db-error.ts ├── event-store │ ├── README.md │ ├── config │ │ ├── event-store-config.service.ts │ │ └── index.ts │ └── event-store-wrapper.module.ts ├── health │ ├── README.md │ ├── health.module.ts │ └── services │ │ ├── health.service.spec.ts │ │ ├── health.service.ts │ │ └── index.ts ├── item │ ├── README.md │ ├── application │ │ ├── README.md │ │ ├── application.module.ts │ │ ├── commands │ │ │ ├── handlers │ │ │ │ ├── create-item │ │ │ │ │ ├── create-item.handler.spec.ts │ │ │ │ │ ├── create-item.handler.ts │ │ │ │ │ └── index.ts │ │ │ │ ├── delete-item-by-id │ │ │ │ │ ├── delete-item-by-id.handler.spec.ts │ │ │ │ │ ├── delete-item-by-id.handler.ts │ │ │ │ │ └── index.ts │ │ │ │ ├── index.ts │ │ │ │ ├── notify-item-owner │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── notify-item-owner.handler.spec.ts │ │ │ │ │ └── notify-item-owner.handler.ts │ │ │ │ └── update-item │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── update-item.handler.spec.ts │ │ │ │ │ └── update-item.handler.ts │ │ │ └── impl │ │ │ │ ├── create-item │ │ │ │ ├── create-item.command.spec.ts │ │ │ │ ├── create-item.command.ts │ │ │ │ └── index.ts │ │ │ │ ├── delete-item-by-id │ │ │ │ ├── delete-item-by-id.command.spec.ts │ │ │ │ ├── delete-item-by-id.command.ts │ │ │ │ └── index.ts │ │ │ │ ├── index.ts │ │ │ │ ├── notify-item-owner │ │ │ │ ├── index.ts │ │ │ │ ├── notify-item-owner.command.spec.ts │ │ │ │ └── notify-item-owner.command.ts │ │ │ │ └── update-item │ │ │ │ ├── index.ts │ │ │ │ ├── update-item.command.spec.ts │ │ │ │ └── update-item.command.ts │ │ ├── controllers │ │ │ ├── index.ts │ │ │ ├── item.controller.spec.ts │ │ │ └── item.controller.ts │ │ ├── dtos │ │ │ ├── create-item │ │ │ │ ├── create-item.dto.spec.ts │ │ │ │ ├── create-item.dto.ts │ │ │ │ └── index.ts │ │ │ ├── get-items │ │ │ │ ├── get-items.dto.spec.ts │ │ │ │ ├── get-items.dto.ts │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── update-item │ │ │ │ ├── index.ts │ │ │ │ ├── update-item.dto.spec.ts │ │ │ │ └── update-item.dto.ts │ │ ├── queries │ │ │ ├── handlers │ │ │ │ ├── get-item-by-id │ │ │ │ │ ├── get-item-by-id.handler.spec.ts │ │ │ │ │ ├── get-item-by-id.handler.ts │ │ │ │ │ └── index.ts │ │ │ │ ├── get-items │ │ │ │ │ ├── get-items.handler.spec.ts │ │ │ │ │ ├── get-items.handler.ts │ │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ │ └── impl │ │ │ │ ├── get-item-by-id │ │ │ │ ├── get-item-by-id.query.spec.ts │ │ │ │ ├── get-item-by-id.query.ts │ │ │ │ └── index.ts │ │ │ │ ├── get-items │ │ │ │ ├── get-items.query.spec.ts │ │ │ │ ├── get-items.query.ts │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ └── services │ │ │ ├── index.ts │ │ │ ├── item.service.spec.ts │ │ │ └── item.service.ts │ ├── domain │ │ ├── README.md │ │ ├── domain.module.ts │ │ ├── events │ │ │ ├── handlers │ │ │ │ ├── index.ts │ │ │ │ ├── item-created │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── item-created.handler.spec.ts │ │ │ │ │ └── item-created.handler.ts │ │ │ │ ├── item-deleted │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── item-deleted.handler.spec.ts │ │ │ │ │ └── item-deleted.handler.ts │ │ │ │ ├── item-owner-notified │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── item-owner-notified.handler.spec.ts │ │ │ │ │ └── item-owner-notified.handler.ts │ │ │ │ └── item-updated │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── item-updated.handler.spec.ts │ │ │ │ │ └── item-updated.handler.ts │ │ │ └── impl │ │ │ │ ├── index.ts │ │ │ │ ├── item-created │ │ │ │ ├── index.ts │ │ │ │ ├── item-created.event.spec.ts │ │ │ │ └── item-created.event.ts │ │ │ │ ├── item-deleted │ │ │ │ ├── index.ts │ │ │ │ ├── item-deleted.event.spec.ts │ │ │ │ └── item-deleted.event.ts │ │ │ │ ├── item-owner-notified │ │ │ │ ├── index.ts │ │ │ │ ├── item-owner-notified.event.spec.ts │ │ │ │ └── item-owner-notified.event.ts │ │ │ │ └── item-updated │ │ │ │ ├── index.ts │ │ │ │ ├── item-updated.event.spec.ts │ │ │ │ └── item-updated.event.ts │ │ ├── models │ │ │ ├── index.ts │ │ │ ├── item.model.spec.ts │ │ │ └── item.model.ts │ │ ├── repositories │ │ │ ├── index.ts │ │ │ ├── item.repository.spec.ts │ │ │ └── item.repository.ts │ │ ├── sagas │ │ │ ├── index.ts │ │ │ └── item.sagas.ts │ │ └── types │ │ │ ├── index.ts │ │ │ └── item-event.type.ts │ ├── infrastructure │ │ ├── README.md │ │ ├── entities │ │ │ ├── index.ts │ │ │ ├── item.entity.spec.ts │ │ │ └── item.entity.ts │ │ ├── infrastructure.module.ts │ │ └── repositories │ │ │ ├── index.ts │ │ │ ├── item-read.repository.ts │ │ │ └── item-write.repository.ts │ └── item.module.ts └── main.ts ├── test ├── app.e2e-spec.ts ├── jest-e2e.json └── mocks │ ├── index.ts │ ├── mocked-config-service.ts │ └── mocked-type-orm-repository.ts ├── tsconfig.build.json ├── tsconfig.json └── yarn.lock /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/BUG_REPORT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/.github/ISSUE_TEMPLATE/BUG_REPORT.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/continuous-integration.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/.github/workflows/continuous-integration.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/.prettierrc -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/README.md -------------------------------------------------------------------------------- /doc/microservice-template-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/doc/microservice-template-logo.png -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/nest-cli.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/package.json -------------------------------------------------------------------------------- /src/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/README.md -------------------------------------------------------------------------------- /src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/app.module.ts -------------------------------------------------------------------------------- /src/database/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/database/README.md -------------------------------------------------------------------------------- /src/database/config/index.ts: -------------------------------------------------------------------------------- 1 | export * from './type-orm-config.service'; 2 | -------------------------------------------------------------------------------- /src/database/config/type-orm-config.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/database/config/type-orm-config.service.ts -------------------------------------------------------------------------------- /src/database/database.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/database/database.module.ts -------------------------------------------------------------------------------- /src/database/helpers/enums/db-error-codes.enum.ts: -------------------------------------------------------------------------------- 1 | export enum DbErrorCodes { 2 | UniqueViolation = '23505', 3 | } 4 | -------------------------------------------------------------------------------- /src/database/helpers/enums/index.ts: -------------------------------------------------------------------------------- 1 | export * from './db-error-codes.enum'; 2 | -------------------------------------------------------------------------------- /src/database/helpers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/database/helpers/index.ts -------------------------------------------------------------------------------- /src/database/helpers/interfaces/error-object.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/database/helpers/interfaces/error-object.interface.ts -------------------------------------------------------------------------------- /src/database/helpers/interfaces/index.ts: -------------------------------------------------------------------------------- 1 | export * from './error-object.interface'; 2 | -------------------------------------------------------------------------------- /src/database/helpers/validate-db-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/database/helpers/validate-db-error.ts -------------------------------------------------------------------------------- /src/event-store/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/event-store/README.md -------------------------------------------------------------------------------- /src/event-store/config/event-store-config.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/event-store/config/event-store-config.service.ts -------------------------------------------------------------------------------- /src/event-store/config/index.ts: -------------------------------------------------------------------------------- 1 | export * from './event-store-config.service'; 2 | -------------------------------------------------------------------------------- /src/event-store/event-store-wrapper.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/event-store/event-store-wrapper.module.ts -------------------------------------------------------------------------------- /src/health/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/health/README.md -------------------------------------------------------------------------------- /src/health/health.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/health/health.module.ts -------------------------------------------------------------------------------- /src/health/services/health.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/health/services/health.service.spec.ts -------------------------------------------------------------------------------- /src/health/services/health.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/health/services/health.service.ts -------------------------------------------------------------------------------- /src/health/services/index.ts: -------------------------------------------------------------------------------- 1 | export * from './health.service'; 2 | -------------------------------------------------------------------------------- /src/item/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/README.md -------------------------------------------------------------------------------- /src/item/application/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/README.md -------------------------------------------------------------------------------- /src/item/application/application.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/application.module.ts -------------------------------------------------------------------------------- /src/item/application/commands/handlers/create-item/create-item.handler.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/handlers/create-item/create-item.handler.spec.ts -------------------------------------------------------------------------------- /src/item/application/commands/handlers/create-item/create-item.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/handlers/create-item/create-item.handler.ts -------------------------------------------------------------------------------- /src/item/application/commands/handlers/create-item/index.ts: -------------------------------------------------------------------------------- 1 | export * from './create-item.handler'; 2 | -------------------------------------------------------------------------------- /src/item/application/commands/handlers/delete-item-by-id/delete-item-by-id.handler.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/handlers/delete-item-by-id/delete-item-by-id.handler.spec.ts -------------------------------------------------------------------------------- /src/item/application/commands/handlers/delete-item-by-id/delete-item-by-id.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/handlers/delete-item-by-id/delete-item-by-id.handler.ts -------------------------------------------------------------------------------- /src/item/application/commands/handlers/delete-item-by-id/index.ts: -------------------------------------------------------------------------------- 1 | export * from './delete-item-by-id.handler'; 2 | -------------------------------------------------------------------------------- /src/item/application/commands/handlers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/handlers/index.ts -------------------------------------------------------------------------------- /src/item/application/commands/handlers/notify-item-owner/index.ts: -------------------------------------------------------------------------------- 1 | export * from './notify-item-owner.handler'; 2 | -------------------------------------------------------------------------------- /src/item/application/commands/handlers/notify-item-owner/notify-item-owner.handler.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/handlers/notify-item-owner/notify-item-owner.handler.spec.ts -------------------------------------------------------------------------------- /src/item/application/commands/handlers/notify-item-owner/notify-item-owner.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/handlers/notify-item-owner/notify-item-owner.handler.ts -------------------------------------------------------------------------------- /src/item/application/commands/handlers/update-item/index.ts: -------------------------------------------------------------------------------- 1 | export * from './update-item.handler'; 2 | -------------------------------------------------------------------------------- /src/item/application/commands/handlers/update-item/update-item.handler.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/handlers/update-item/update-item.handler.spec.ts -------------------------------------------------------------------------------- /src/item/application/commands/handlers/update-item/update-item.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/handlers/update-item/update-item.handler.ts -------------------------------------------------------------------------------- /src/item/application/commands/impl/create-item/create-item.command.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/impl/create-item/create-item.command.spec.ts -------------------------------------------------------------------------------- /src/item/application/commands/impl/create-item/create-item.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/impl/create-item/create-item.command.ts -------------------------------------------------------------------------------- /src/item/application/commands/impl/create-item/index.ts: -------------------------------------------------------------------------------- 1 | export * from './create-item.command'; 2 | -------------------------------------------------------------------------------- /src/item/application/commands/impl/delete-item-by-id/delete-item-by-id.command.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/impl/delete-item-by-id/delete-item-by-id.command.spec.ts -------------------------------------------------------------------------------- /src/item/application/commands/impl/delete-item-by-id/delete-item-by-id.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/impl/delete-item-by-id/delete-item-by-id.command.ts -------------------------------------------------------------------------------- /src/item/application/commands/impl/delete-item-by-id/index.ts: -------------------------------------------------------------------------------- 1 | export * from './delete-item-by-id.command'; 2 | -------------------------------------------------------------------------------- /src/item/application/commands/impl/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/impl/index.ts -------------------------------------------------------------------------------- /src/item/application/commands/impl/notify-item-owner/index.ts: -------------------------------------------------------------------------------- 1 | export * from './notify-item-owner.command'; 2 | -------------------------------------------------------------------------------- /src/item/application/commands/impl/notify-item-owner/notify-item-owner.command.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/impl/notify-item-owner/notify-item-owner.command.spec.ts -------------------------------------------------------------------------------- /src/item/application/commands/impl/notify-item-owner/notify-item-owner.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/impl/notify-item-owner/notify-item-owner.command.ts -------------------------------------------------------------------------------- /src/item/application/commands/impl/update-item/index.ts: -------------------------------------------------------------------------------- 1 | export * from './update-item.command'; 2 | -------------------------------------------------------------------------------- /src/item/application/commands/impl/update-item/update-item.command.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/impl/update-item/update-item.command.spec.ts -------------------------------------------------------------------------------- /src/item/application/commands/impl/update-item/update-item.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/commands/impl/update-item/update-item.command.ts -------------------------------------------------------------------------------- /src/item/application/controllers/index.ts: -------------------------------------------------------------------------------- 1 | export * from './item.controller'; 2 | -------------------------------------------------------------------------------- /src/item/application/controllers/item.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/controllers/item.controller.spec.ts -------------------------------------------------------------------------------- /src/item/application/controllers/item.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/controllers/item.controller.ts -------------------------------------------------------------------------------- /src/item/application/dtos/create-item/create-item.dto.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/dtos/create-item/create-item.dto.spec.ts -------------------------------------------------------------------------------- /src/item/application/dtos/create-item/create-item.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/dtos/create-item/create-item.dto.ts -------------------------------------------------------------------------------- /src/item/application/dtos/create-item/index.ts: -------------------------------------------------------------------------------- 1 | export * from './create-item.dto'; 2 | -------------------------------------------------------------------------------- /src/item/application/dtos/get-items/get-items.dto.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/dtos/get-items/get-items.dto.spec.ts -------------------------------------------------------------------------------- /src/item/application/dtos/get-items/get-items.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/dtos/get-items/get-items.dto.ts -------------------------------------------------------------------------------- /src/item/application/dtos/get-items/index.ts: -------------------------------------------------------------------------------- 1 | export * from './get-items.dto'; 2 | -------------------------------------------------------------------------------- /src/item/application/dtos/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/dtos/index.ts -------------------------------------------------------------------------------- /src/item/application/dtos/update-item/index.ts: -------------------------------------------------------------------------------- 1 | export * from './update-item.dto'; 2 | -------------------------------------------------------------------------------- /src/item/application/dtos/update-item/update-item.dto.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/dtos/update-item/update-item.dto.spec.ts -------------------------------------------------------------------------------- /src/item/application/dtos/update-item/update-item.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/dtos/update-item/update-item.dto.ts -------------------------------------------------------------------------------- /src/item/application/queries/handlers/get-item-by-id/get-item-by-id.handler.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/queries/handlers/get-item-by-id/get-item-by-id.handler.spec.ts -------------------------------------------------------------------------------- /src/item/application/queries/handlers/get-item-by-id/get-item-by-id.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/queries/handlers/get-item-by-id/get-item-by-id.handler.ts -------------------------------------------------------------------------------- /src/item/application/queries/handlers/get-item-by-id/index.ts: -------------------------------------------------------------------------------- 1 | export * from './get-item-by-id.handler'; 2 | -------------------------------------------------------------------------------- /src/item/application/queries/handlers/get-items/get-items.handler.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/queries/handlers/get-items/get-items.handler.spec.ts -------------------------------------------------------------------------------- /src/item/application/queries/handlers/get-items/get-items.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/queries/handlers/get-items/get-items.handler.ts -------------------------------------------------------------------------------- /src/item/application/queries/handlers/get-items/index.ts: -------------------------------------------------------------------------------- 1 | export * from './get-items.handler'; 2 | -------------------------------------------------------------------------------- /src/item/application/queries/handlers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/queries/handlers/index.ts -------------------------------------------------------------------------------- /src/item/application/queries/impl/get-item-by-id/get-item-by-id.query.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/queries/impl/get-item-by-id/get-item-by-id.query.spec.ts -------------------------------------------------------------------------------- /src/item/application/queries/impl/get-item-by-id/get-item-by-id.query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/queries/impl/get-item-by-id/get-item-by-id.query.ts -------------------------------------------------------------------------------- /src/item/application/queries/impl/get-item-by-id/index.ts: -------------------------------------------------------------------------------- 1 | export * from './get-item-by-id.query'; 2 | -------------------------------------------------------------------------------- /src/item/application/queries/impl/get-items/get-items.query.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/queries/impl/get-items/get-items.query.spec.ts -------------------------------------------------------------------------------- /src/item/application/queries/impl/get-items/get-items.query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/queries/impl/get-items/get-items.query.ts -------------------------------------------------------------------------------- /src/item/application/queries/impl/get-items/index.ts: -------------------------------------------------------------------------------- 1 | export * from './get-items.query'; 2 | -------------------------------------------------------------------------------- /src/item/application/queries/impl/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/queries/impl/index.ts -------------------------------------------------------------------------------- /src/item/application/services/index.ts: -------------------------------------------------------------------------------- 1 | export * from './item.service'; 2 | -------------------------------------------------------------------------------- /src/item/application/services/item.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/services/item.service.spec.ts -------------------------------------------------------------------------------- /src/item/application/services/item.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/application/services/item.service.ts -------------------------------------------------------------------------------- /src/item/domain/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/README.md -------------------------------------------------------------------------------- /src/item/domain/domain.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/domain.module.ts -------------------------------------------------------------------------------- /src/item/domain/events/handlers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/handlers/index.ts -------------------------------------------------------------------------------- /src/item/domain/events/handlers/item-created/index.ts: -------------------------------------------------------------------------------- 1 | export * from './item-created.handler'; 2 | -------------------------------------------------------------------------------- /src/item/domain/events/handlers/item-created/item-created.handler.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/handlers/item-created/item-created.handler.spec.ts -------------------------------------------------------------------------------- /src/item/domain/events/handlers/item-created/item-created.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/handlers/item-created/item-created.handler.ts -------------------------------------------------------------------------------- /src/item/domain/events/handlers/item-deleted/index.ts: -------------------------------------------------------------------------------- 1 | export * from './item-deleted.handler'; 2 | -------------------------------------------------------------------------------- /src/item/domain/events/handlers/item-deleted/item-deleted.handler.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/handlers/item-deleted/item-deleted.handler.spec.ts -------------------------------------------------------------------------------- /src/item/domain/events/handlers/item-deleted/item-deleted.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/handlers/item-deleted/item-deleted.handler.ts -------------------------------------------------------------------------------- /src/item/domain/events/handlers/item-owner-notified/index.ts: -------------------------------------------------------------------------------- 1 | export * from './item-owner-notified.handler'; 2 | -------------------------------------------------------------------------------- /src/item/domain/events/handlers/item-owner-notified/item-owner-notified.handler.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/handlers/item-owner-notified/item-owner-notified.handler.spec.ts -------------------------------------------------------------------------------- /src/item/domain/events/handlers/item-owner-notified/item-owner-notified.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/handlers/item-owner-notified/item-owner-notified.handler.ts -------------------------------------------------------------------------------- /src/item/domain/events/handlers/item-updated/index.ts: -------------------------------------------------------------------------------- 1 | export * from './item-updated.handler'; 2 | -------------------------------------------------------------------------------- /src/item/domain/events/handlers/item-updated/item-updated.handler.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/handlers/item-updated/item-updated.handler.spec.ts -------------------------------------------------------------------------------- /src/item/domain/events/handlers/item-updated/item-updated.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/handlers/item-updated/item-updated.handler.ts -------------------------------------------------------------------------------- /src/item/domain/events/impl/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/impl/index.ts -------------------------------------------------------------------------------- /src/item/domain/events/impl/item-created/index.ts: -------------------------------------------------------------------------------- 1 | export * from './item-created.event'; 2 | -------------------------------------------------------------------------------- /src/item/domain/events/impl/item-created/item-created.event.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/impl/item-created/item-created.event.spec.ts -------------------------------------------------------------------------------- /src/item/domain/events/impl/item-created/item-created.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/impl/item-created/item-created.event.ts -------------------------------------------------------------------------------- /src/item/domain/events/impl/item-deleted/index.ts: -------------------------------------------------------------------------------- 1 | export * from './item-deleted.event'; 2 | -------------------------------------------------------------------------------- /src/item/domain/events/impl/item-deleted/item-deleted.event.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/impl/item-deleted/item-deleted.event.spec.ts -------------------------------------------------------------------------------- /src/item/domain/events/impl/item-deleted/item-deleted.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/impl/item-deleted/item-deleted.event.ts -------------------------------------------------------------------------------- /src/item/domain/events/impl/item-owner-notified/index.ts: -------------------------------------------------------------------------------- 1 | export * from './item-owner-notified.event'; 2 | -------------------------------------------------------------------------------- /src/item/domain/events/impl/item-owner-notified/item-owner-notified.event.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/impl/item-owner-notified/item-owner-notified.event.spec.ts -------------------------------------------------------------------------------- /src/item/domain/events/impl/item-owner-notified/item-owner-notified.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/impl/item-owner-notified/item-owner-notified.event.ts -------------------------------------------------------------------------------- /src/item/domain/events/impl/item-updated/index.ts: -------------------------------------------------------------------------------- 1 | export * from './item-updated.event'; 2 | -------------------------------------------------------------------------------- /src/item/domain/events/impl/item-updated/item-updated.event.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/impl/item-updated/item-updated.event.spec.ts -------------------------------------------------------------------------------- /src/item/domain/events/impl/item-updated/item-updated.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/events/impl/item-updated/item-updated.event.ts -------------------------------------------------------------------------------- /src/item/domain/models/index.ts: -------------------------------------------------------------------------------- 1 | export * from './item.model'; 2 | -------------------------------------------------------------------------------- /src/item/domain/models/item.model.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/models/item.model.spec.ts -------------------------------------------------------------------------------- /src/item/domain/models/item.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/models/item.model.ts -------------------------------------------------------------------------------- /src/item/domain/repositories/index.ts: -------------------------------------------------------------------------------- 1 | export * from './item.repository'; 2 | -------------------------------------------------------------------------------- /src/item/domain/repositories/item.repository.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/repositories/item.repository.spec.ts -------------------------------------------------------------------------------- /src/item/domain/repositories/item.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/repositories/item.repository.ts -------------------------------------------------------------------------------- /src/item/domain/sagas/index.ts: -------------------------------------------------------------------------------- 1 | export * from './item.sagas'; 2 | -------------------------------------------------------------------------------- /src/item/domain/sagas/item.sagas.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/sagas/item.sagas.ts -------------------------------------------------------------------------------- /src/item/domain/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from './item-event.type'; 2 | -------------------------------------------------------------------------------- /src/item/domain/types/item-event.type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/domain/types/item-event.type.ts -------------------------------------------------------------------------------- /src/item/infrastructure/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/infrastructure/README.md -------------------------------------------------------------------------------- /src/item/infrastructure/entities/index.ts: -------------------------------------------------------------------------------- 1 | export * from './item.entity'; 2 | -------------------------------------------------------------------------------- /src/item/infrastructure/entities/item.entity.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/infrastructure/entities/item.entity.spec.ts -------------------------------------------------------------------------------- /src/item/infrastructure/entities/item.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/infrastructure/entities/item.entity.ts -------------------------------------------------------------------------------- /src/item/infrastructure/infrastructure.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/infrastructure/infrastructure.module.ts -------------------------------------------------------------------------------- /src/item/infrastructure/repositories/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/infrastructure/repositories/index.ts -------------------------------------------------------------------------------- /src/item/infrastructure/repositories/item-read.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/infrastructure/repositories/item-read.repository.ts -------------------------------------------------------------------------------- /src/item/infrastructure/repositories/item-write.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/infrastructure/repositories/item-write.repository.ts -------------------------------------------------------------------------------- /src/item/item.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/item/item.module.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/src/main.ts -------------------------------------------------------------------------------- /test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/test/jest-e2e.json -------------------------------------------------------------------------------- /test/mocks/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/test/mocks/index.ts -------------------------------------------------------------------------------- /test/mocks/mocked-config-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/test/mocks/mocked-config-service.ts -------------------------------------------------------------------------------- /test/mocks/mocked-type-orm-repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/test/mocks/mocked-type-orm-repository.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Baroshem/microservice-template/HEAD/yarn.lock --------------------------------------------------------------------------------