├── .dockerignore ├── .gitattributes ├── .gitignore ├── .prettierignore ├── .prettierrc.json ├── .vscode └── settings.json ├── README.md ├── common ├── config │ └── rush │ │ ├── .npmrc │ │ ├── .npmrc-publish │ │ ├── artifactory.json │ │ ├── command-line.json │ │ ├── common-versions.json │ │ ├── deploy.json │ │ ├── experiments.json │ │ ├── pnpm-lock.yaml │ │ ├── pnpmfile.js │ │ └── version-policies.json ├── git-hooks │ └── commit-msg.sample └── scripts │ ├── install-run-rush.js │ ├── install-run-rushx.js │ └── install-run.js ├── docker-compose.override.yaml.dist ├── docker-compose.yaml ├── docker ├── Dockerfile └── Dockerfile.scheduler ├── docs ├── C4Diagram.drawio ├── adr │ ├── 0001-record-architecture-decisions.md │ ├── 0002-use-modular-monolith-architecture.md │ ├── 0003-di-container-for-each-module.md │ ├── 0004-share-infrastructure-between-all-modules.md │ └── 0005-use-local-contract-for-integration-events.md ├── c4 │ ├── components.jpg │ ├── containers.jpg │ └── system-context.jpg └── images │ ├── es-booking-module.jpg │ ├── es-couch-module.jpg │ ├── es-overview.jpg │ ├── es-review-module.jpg │ └── es-user-module.jpg ├── rush.json ├── src ├── app │ ├── scheduler │ │ ├── .env.dist │ │ ├── .eslintignore │ │ ├── .eslintrc.js │ │ ├── .swcrc │ │ ├── crontab │ │ ├── package.json │ │ ├── src │ │ │ ├── config │ │ │ │ └── config.ts │ │ │ ├── http.client.ts │ │ │ ├── index.ts │ │ │ └── jobs │ │ │ │ └── finish-bookings.job.ts │ │ └── tsconfig.json │ └── travelhoop │ │ ├── .env.dist │ │ ├── .eslintignore │ │ ├── .eslintrc.js │ │ ├── .swcrc │ │ ├── package.json │ │ ├── src │ │ ├── app.ts │ │ ├── config │ │ │ ├── config.ts │ │ │ ├── db-config.ts │ │ │ └── index.ts │ │ ├── container.ts │ │ ├── database │ │ │ └── migrator │ │ │ │ ├── create.ts │ │ │ │ ├── down.ts │ │ │ │ └── up.ts │ │ ├── migrations │ │ │ ├── migration-20210503185713.ts │ │ │ ├── migration-20210504171406.ts │ │ │ ├── migration-20210604132200.ts │ │ │ └── migration-20210605185254.ts │ │ ├── module.loader.ts │ │ ├── server.ts │ │ └── tests │ │ │ └── bootstrap.ts │ │ └── tsconfig.json ├── modules │ ├── booking │ │ ├── .eslintignore │ │ ├── .eslintrc.js │ │ ├── .swcrc │ │ ├── booking.rest │ │ ├── package.json │ │ ├── src │ │ │ ├── api │ │ │ │ ├── booking.module.ts │ │ │ │ └── routes │ │ │ │ │ ├── bookable-couch.router.ts │ │ │ │ │ ├── couch-booking-request.router.ts │ │ │ │ │ └── router.ts │ │ │ ├── application │ │ │ │ ├── bookable-couch │ │ │ │ │ ├── events │ │ │ │ │ │ └── couch-created.event.ts │ │ │ │ │ ├── handlers │ │ │ │ │ │ ├── archive-bookable-couch │ │ │ │ │ │ │ ├── archive-bookable-couch.command.ts │ │ │ │ │ │ │ └── archive-bookable-couch.handler.ts │ │ │ │ │ │ ├── cancel-booking │ │ │ │ │ │ │ ├── cancel-booking.command.ts │ │ │ │ │ │ │ ├── cancel-booking.handler.ts │ │ │ │ │ │ │ └── cancel-booking.validator.ts │ │ │ │ │ │ ├── create-booking │ │ │ │ │ │ │ ├── create-booking.command.ts │ │ │ │ │ │ │ ├── create-booking.handler.ts │ │ │ │ │ │ │ └── create-booking.validator.ts │ │ │ │ │ │ └── finish-bookings │ │ │ │ │ │ │ ├── finish-bookings.command.ts │ │ │ │ │ │ │ ├── finish-bookings.handler.ts │ │ │ │ │ │ │ └── finish-bookings.validator.ts │ │ │ │ │ └── subscribers │ │ │ │ │ │ └── couch-created.subscriber.ts │ │ │ │ └── couch-booking-request │ │ │ │ │ ├── handlers │ │ │ │ │ ├── reject-couch-booking-request │ │ │ │ │ │ ├── reject-couch-booking-request.command.ts │ │ │ │ │ │ ├── reject-couch-booking-request.handler.ts │ │ │ │ │ │ └── reject-couch-booking-request.validator.ts │ │ │ │ │ └── request-couch-booking │ │ │ │ │ │ ├── request-couch-booking.command.ts │ │ │ │ │ │ ├── request-couch-booking.handler.ts │ │ │ │ │ │ └── request-couch-booking.validator.ts │ │ │ │ │ └── subscribers │ │ │ │ │ └── couch-booking-created.subscriber.ts │ │ │ ├── domain │ │ │ │ ├── bookable-couch │ │ │ │ │ ├── entity │ │ │ │ │ │ ├── bookable-couch.ts │ │ │ │ │ │ ├── booking.ts │ │ │ │ │ │ ├── couch-booking.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── unavailable-booking.ts │ │ │ │ │ ├── enum │ │ │ │ │ │ ├── bookable-couch-state.enum.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── error │ │ │ │ │ │ ├── all-couches-are-reserved.error.ts │ │ │ │ │ │ ├── booking-not-found.error.ts │ │ │ │ │ │ ├── booking-unavailable.error.ts │ │ │ │ │ │ ├── cannot-archive-couch.error.ts │ │ │ │ │ │ ├── cannot-book-couch.error.ts │ │ │ │ │ │ ├── cannot-cancel-booking.error.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── event │ │ │ │ │ │ ├── bookable-couch-archived.event.ts │ │ │ │ │ │ ├── bookings-finished.event.ts │ │ │ │ │ │ ├── couch-booking-cancelled.event.ts │ │ │ │ │ │ ├── couch-booking-created.event.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── policy │ │ │ │ │ │ ├── couch-booking-cancellation.policy.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── repository │ │ │ │ │ │ ├── bookable-couch.repository.ts │ │ │ │ │ │ └── index.ts │ │ │ │ ├── booking-cancellation │ │ │ │ │ ├── entity │ │ │ │ │ │ ├── booking-cancellation.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── repository │ │ │ │ │ │ ├── booking-cancellation.repository.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── subscribers │ │ │ │ │ │ ├── couch-booking-cancelled.subscriber.ts │ │ │ │ │ │ └── index.ts │ │ │ │ ├── couch-booking-request │ │ │ │ │ ├── entity │ │ │ │ │ │ ├── couch-booking-request.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── request-status.ts │ │ │ │ │ ├── error │ │ │ │ │ │ ├── cannot-accept-booking.error.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── event │ │ │ │ │ │ ├── couch-booking-request-created.event.ts │ │ │ │ │ │ ├── couch-booking-status-changed.event.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── repository │ │ │ │ │ │ ├── couch-booking-request.repository.ts │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── service │ │ │ │ │ │ ├── couch-booking-request.domain-service.ts │ │ │ │ │ │ └── index.ts │ │ │ │ ├── index.ts │ │ │ │ └── tests │ │ │ │ │ ├── bookable-couch.test.ts │ │ │ │ │ ├── couch-booking-request-domain-service.test.ts │ │ │ │ │ ├── couch-booking-request.test.ts │ │ │ │ │ └── helpers │ │ │ │ │ └── create-couch-booking-request.ts │ │ │ ├── index.ts │ │ │ └── infrastructure │ │ │ │ ├── config.ts │ │ │ │ ├── container.ts │ │ │ │ └── mikro-orm │ │ │ │ ├── entity-schemas │ │ │ │ ├── bookable-couch.entity.ts │ │ │ │ ├── booking-cancellation.entity.ts │ │ │ │ ├── booking.ts │ │ │ │ ├── couch-booking-request.entity.ts │ │ │ │ ├── couch-booking.ts │ │ │ │ └── unavailable-booking.ts │ │ │ │ └── repositories │ │ │ │ ├── bookable-couch.repository.ts │ │ │ │ ├── booking-cancellation.repository.ts │ │ │ │ └── couch-booking-request.repository.ts │ │ └── tsconfig.json │ ├── couch │ │ ├── .eslintignore │ │ ├── .eslintrc.js │ │ ├── .swcrc │ │ ├── couch.rest │ │ ├── package.json │ │ ├── src │ │ │ ├── api │ │ │ │ ├── container.ts │ │ │ │ ├── couch.module.ts │ │ │ │ └── routes │ │ │ │ │ ├── couch.router.ts │ │ │ │ │ └── router.ts │ │ │ ├── core │ │ │ │ ├── config.ts │ │ │ │ ├── dto │ │ │ │ │ ├── couch.dto.ts │ │ │ │ │ ├── create-couch.dto.ts │ │ │ │ │ └── update-couch.dto.ts │ │ │ │ ├── entities │ │ │ │ │ └── couch.ts │ │ │ │ ├── error │ │ │ │ │ └── couch-not-found.error.ts │ │ │ │ ├── events │ │ │ │ │ └── couch-created.event.ts │ │ │ │ ├── repositories │ │ │ │ │ └── couch.repository.ts │ │ │ │ └── services │ │ │ │ │ └── couch.service.ts │ │ │ └── index.ts │ │ └── tsconfig.json │ ├── review │ │ ├── .eslintignore │ │ ├── .eslintrc.js │ │ ├── .swcrc │ │ ├── package.json │ │ ├── review.rest │ │ ├── src │ │ │ ├── api │ │ │ │ ├── container.ts │ │ │ │ ├── review.module.ts │ │ │ │ └── routes │ │ │ │ │ ├── booking-review.router.ts │ │ │ │ │ └── router.ts │ │ │ ├── core │ │ │ │ ├── config.ts │ │ │ │ ├── dto │ │ │ │ │ ├── booking-review.dto.ts │ │ │ │ │ ├── create-couch.dto.ts │ │ │ │ │ └── update-booking-review.dto.ts │ │ │ │ ├── entities │ │ │ │ │ ├── booking-review.ts │ │ │ │ │ └── review-details.ts │ │ │ │ ├── error │ │ │ │ │ └── booking-review-not-found.error.ts │ │ │ │ ├── events │ │ │ │ │ └── external │ │ │ │ │ │ └── booking-finished.event.ts │ │ │ │ ├── repositories │ │ │ │ │ └── booking-review.repository.ts │ │ │ │ ├── services │ │ │ │ │ └── booking-review.service.ts │ │ │ │ └── subscribers │ │ │ │ │ └── booking-finished.subscriber.ts │ │ │ └── index.ts │ │ └── tsconfig.json │ └── user │ │ ├── .eslintignore │ │ ├── .eslintrc.js │ │ ├── .swcrc │ │ ├── package.json │ │ ├── src │ │ ├── api │ │ │ ├── container.ts │ │ │ ├── routes │ │ │ │ ├── router.ts │ │ │ │ └── user.router.ts │ │ │ └── user.module.ts │ │ ├── core │ │ │ ├── config.ts │ │ │ ├── dto │ │ │ │ ├── login.dto.ts │ │ │ │ ├── register.dto.ts │ │ │ │ ├── update-user.dto.ts │ │ │ │ └── user.dto.ts │ │ │ ├── entities │ │ │ │ ├── profile.ts │ │ │ │ └── user.ts │ │ │ ├── error │ │ │ │ ├── invalid-email-or-password.error.ts │ │ │ │ ├── user-exists.error.ts │ │ │ │ └── user-not-found.error.ts │ │ │ ├── events │ │ │ │ └── user-created.event.ts │ │ │ ├── repositories │ │ │ │ ├── profile.repository.ts │ │ │ │ └── user.repository.ts │ │ │ ├── services │ │ │ │ ├── auth.service.ts │ │ │ │ ├── password-hasher.ts │ │ │ │ └── user.service.ts │ │ │ └── subscribers │ │ │ │ └── user-created.subscriber.ts │ │ └── index.ts │ │ ├── tsconfig.json │ │ └── user.rest └── shared │ ├── abstract-core │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .swcrc │ ├── package.json │ ├── src │ │ ├── auth │ │ │ ├── index.ts │ │ │ └── user.ts │ │ ├── command │ │ │ ├── command-dispatcher.ts │ │ │ ├── command-handler.ts │ │ │ ├── command.ts │ │ │ └── index.ts │ │ ├── error │ │ │ ├── index.ts │ │ │ └── travelhoop.error.ts │ │ ├── event │ │ │ ├── event.dispatcher.ts │ │ │ ├── event.subscriber.ts │ │ │ ├── event.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ ├── logger │ │ │ ├── index.ts │ │ │ └── logger.ts │ │ ├── messaging │ │ │ ├── index.ts │ │ │ ├── message-dispatcher.ts │ │ │ └── message.ts │ │ └── queue │ │ │ ├── index.ts │ │ │ └── queue.ts │ └── tsconfig.json │ ├── infrastructure │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .swcrc │ ├── package.json │ ├── src │ │ ├── command │ │ │ ├── command-dispatcher.ts │ │ │ └── index.ts │ │ ├── config │ │ │ ├── index.ts │ │ │ └── load-env.ts │ │ ├── container │ │ │ ├── as-array.ts │ │ │ ├── as-dictionary.ts │ │ │ ├── container-builder.ts │ │ │ ├── index.ts │ │ │ └── middleware │ │ │ │ └── scope-per-request.ts │ │ ├── event │ │ │ └── event.dispatcher.ts │ │ ├── express │ │ │ ├── index.ts │ │ │ ├── middleware │ │ │ │ ├── auth.ts │ │ │ │ ├── error-handler.ts │ │ │ │ ├── index.ts │ │ │ │ ├── middleware.type.ts │ │ │ │ ├── request-context.ts │ │ │ │ └── scheduler-token.ts │ │ │ ├── request.ts │ │ │ └── response.ts │ │ ├── index.ts │ │ ├── logger │ │ │ ├── index.ts │ │ │ ├── logger.ts │ │ │ └── types.ts │ │ ├── messaging │ │ │ ├── background.message-dispatcher.ts │ │ │ ├── index.ts │ │ │ ├── message-broker.ts │ │ │ └── redis.message-dispatcher.ts │ │ ├── mikro-orm │ │ │ ├── db-connection.ts │ │ │ ├── decorators │ │ │ │ └── transactional-command-dispatcher.decorator.ts │ │ │ ├── entity-schema │ │ │ │ ├── aggregate-root.ts │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ ├── repository.ts │ │ │ └── types │ │ │ │ ├── aggregate-id.ts │ │ │ │ ├── guid-type.ts │ │ │ │ └── index.ts │ │ ├── module │ │ │ ├── app-module.factory.ts │ │ │ ├── app-module.ts │ │ │ └── index.ts │ │ ├── redis │ │ │ └── redis.queue.ts │ │ └── typings │ │ │ └── global.d.ts │ └── tsconfig.json │ └── kernel │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .swcrc │ ├── package.json │ ├── src │ ├── aggregate │ │ ├── aggregate-id.ts │ │ ├── aggregate-root.ts │ │ └── index.ts │ ├── domain-event │ │ ├── domain-event.dispatcher.ts │ │ ├── domain-event.subscriber.ts │ │ ├── domain.event.ts │ │ └── index.ts │ └── index.ts │ └── tsconfig.json └── tools └── toolchain ├── .eslintignore ├── .swcrc ├── includes ├── .eslintrc.js └── tsconfig.web.json ├── package.json └── patch └── modern-module-resolution.js /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/.dockerignore -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/README.md -------------------------------------------------------------------------------- /common/config/rush/.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/common/config/rush/.npmrc -------------------------------------------------------------------------------- /common/config/rush/.npmrc-publish: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/common/config/rush/.npmrc-publish -------------------------------------------------------------------------------- /common/config/rush/artifactory.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/common/config/rush/artifactory.json -------------------------------------------------------------------------------- /common/config/rush/command-line.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/common/config/rush/command-line.json -------------------------------------------------------------------------------- /common/config/rush/common-versions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/common/config/rush/common-versions.json -------------------------------------------------------------------------------- /common/config/rush/deploy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/common/config/rush/deploy.json -------------------------------------------------------------------------------- /common/config/rush/experiments.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/common/config/rush/experiments.json -------------------------------------------------------------------------------- /common/config/rush/pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/common/config/rush/pnpm-lock.yaml -------------------------------------------------------------------------------- /common/config/rush/pnpmfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/common/config/rush/pnpmfile.js -------------------------------------------------------------------------------- /common/config/rush/version-policies.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/common/config/rush/version-policies.json -------------------------------------------------------------------------------- /common/git-hooks/commit-msg.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/common/git-hooks/commit-msg.sample -------------------------------------------------------------------------------- /common/scripts/install-run-rush.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/common/scripts/install-run-rush.js -------------------------------------------------------------------------------- /common/scripts/install-run-rushx.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/common/scripts/install-run-rushx.js -------------------------------------------------------------------------------- /common/scripts/install-run.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/common/scripts/install-run.js -------------------------------------------------------------------------------- /docker-compose.override.yaml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docker-compose.override.yaml.dist -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docker-compose.yaml -------------------------------------------------------------------------------- /docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docker/Dockerfile -------------------------------------------------------------------------------- /docker/Dockerfile.scheduler: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docker/Dockerfile.scheduler -------------------------------------------------------------------------------- /docs/C4Diagram.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docs/C4Diagram.drawio -------------------------------------------------------------------------------- /docs/adr/0001-record-architecture-decisions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docs/adr/0001-record-architecture-decisions.md -------------------------------------------------------------------------------- /docs/adr/0002-use-modular-monolith-architecture.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docs/adr/0002-use-modular-monolith-architecture.md -------------------------------------------------------------------------------- /docs/adr/0003-di-container-for-each-module.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docs/adr/0003-di-container-for-each-module.md -------------------------------------------------------------------------------- /docs/adr/0004-share-infrastructure-between-all-modules.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docs/adr/0004-share-infrastructure-between-all-modules.md -------------------------------------------------------------------------------- /docs/adr/0005-use-local-contract-for-integration-events.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docs/adr/0005-use-local-contract-for-integration-events.md -------------------------------------------------------------------------------- /docs/c4/components.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docs/c4/components.jpg -------------------------------------------------------------------------------- /docs/c4/containers.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docs/c4/containers.jpg -------------------------------------------------------------------------------- /docs/c4/system-context.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docs/c4/system-context.jpg -------------------------------------------------------------------------------- /docs/images/es-booking-module.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docs/images/es-booking-module.jpg -------------------------------------------------------------------------------- /docs/images/es-couch-module.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docs/images/es-couch-module.jpg -------------------------------------------------------------------------------- /docs/images/es-overview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docs/images/es-overview.jpg -------------------------------------------------------------------------------- /docs/images/es-review-module.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docs/images/es-review-module.jpg -------------------------------------------------------------------------------- /docs/images/es-user-module.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/docs/images/es-user-module.jpg -------------------------------------------------------------------------------- /rush.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/rush.json -------------------------------------------------------------------------------- /src/app/scheduler/.env.dist: -------------------------------------------------------------------------------- 1 | API_URL=https://localhost:3010 2 | SCHEDULER_SECURITY_TOKEN=6701e22f61e248708568c95a1e1563d4 3 | -------------------------------------------------------------------------------- /src/app/scheduler/.eslintignore: -------------------------------------------------------------------------------- 1 | **/*.d.ts 2 | *.json -------------------------------------------------------------------------------- /src/app/scheduler/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/scheduler/.eslintrc.js -------------------------------------------------------------------------------- /src/app/scheduler/.swcrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/scheduler/.swcrc -------------------------------------------------------------------------------- /src/app/scheduler/crontab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/scheduler/crontab -------------------------------------------------------------------------------- /src/app/scheduler/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/scheduler/package.json -------------------------------------------------------------------------------- /src/app/scheduler/src/config/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/scheduler/src/config/config.ts -------------------------------------------------------------------------------- /src/app/scheduler/src/http.client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/scheduler/src/http.client.ts -------------------------------------------------------------------------------- /src/app/scheduler/src/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/scheduler/src/jobs/finish-bookings.job.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/scheduler/src/jobs/finish-bookings.job.ts -------------------------------------------------------------------------------- /src/app/scheduler/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/scheduler/tsconfig.json -------------------------------------------------------------------------------- /src/app/travelhoop/.env.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/.env.dist -------------------------------------------------------------------------------- /src/app/travelhoop/.eslintignore: -------------------------------------------------------------------------------- 1 | **/*.d.ts 2 | *.json -------------------------------------------------------------------------------- /src/app/travelhoop/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/.eslintrc.js -------------------------------------------------------------------------------- /src/app/travelhoop/.swcrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/.swcrc -------------------------------------------------------------------------------- /src/app/travelhoop/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/package.json -------------------------------------------------------------------------------- /src/app/travelhoop/src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/src/app.ts -------------------------------------------------------------------------------- /src/app/travelhoop/src/config/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/src/config/config.ts -------------------------------------------------------------------------------- /src/app/travelhoop/src/config/db-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/src/config/db-config.ts -------------------------------------------------------------------------------- /src/app/travelhoop/src/config/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./config"; 2 | -------------------------------------------------------------------------------- /src/app/travelhoop/src/container.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/src/container.ts -------------------------------------------------------------------------------- /src/app/travelhoop/src/database/migrator/create.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/src/database/migrator/create.ts -------------------------------------------------------------------------------- /src/app/travelhoop/src/database/migrator/down.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/src/database/migrator/down.ts -------------------------------------------------------------------------------- /src/app/travelhoop/src/database/migrator/up.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/src/database/migrator/up.ts -------------------------------------------------------------------------------- /src/app/travelhoop/src/migrations/migration-20210503185713.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/src/migrations/migration-20210503185713.ts -------------------------------------------------------------------------------- /src/app/travelhoop/src/migrations/migration-20210504171406.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/src/migrations/migration-20210504171406.ts -------------------------------------------------------------------------------- /src/app/travelhoop/src/migrations/migration-20210604132200.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/src/migrations/migration-20210604132200.ts -------------------------------------------------------------------------------- /src/app/travelhoop/src/migrations/migration-20210605185254.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/src/migrations/migration-20210605185254.ts -------------------------------------------------------------------------------- /src/app/travelhoop/src/module.loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/src/module.loader.ts -------------------------------------------------------------------------------- /src/app/travelhoop/src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/src/server.ts -------------------------------------------------------------------------------- /src/app/travelhoop/src/tests/bootstrap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/src/tests/bootstrap.ts -------------------------------------------------------------------------------- /src/app/travelhoop/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/app/travelhoop/tsconfig.json -------------------------------------------------------------------------------- /src/modules/booking/.eslintignore: -------------------------------------------------------------------------------- 1 | **/*.d.ts 2 | *.json -------------------------------------------------------------------------------- /src/modules/booking/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/.eslintrc.js -------------------------------------------------------------------------------- /src/modules/booking/.swcrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/.swcrc -------------------------------------------------------------------------------- /src/modules/booking/booking.rest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/booking.rest -------------------------------------------------------------------------------- /src/modules/booking/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/package.json -------------------------------------------------------------------------------- /src/modules/booking/src/api/booking.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/api/booking.module.ts -------------------------------------------------------------------------------- /src/modules/booking/src/api/routes/bookable-couch.router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/api/routes/bookable-couch.router.ts -------------------------------------------------------------------------------- /src/modules/booking/src/api/routes/couch-booking-request.router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/api/routes/couch-booking-request.router.ts -------------------------------------------------------------------------------- /src/modules/booking/src/api/routes/router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/api/routes/router.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/bookable-couch/events/couch-created.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/bookable-couch/events/couch-created.event.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/bookable-couch/handlers/archive-bookable-couch/archive-bookable-couch.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/bookable-couch/handlers/archive-bookable-couch/archive-bookable-couch.command.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/bookable-couch/handlers/archive-bookable-couch/archive-bookable-couch.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/bookable-couch/handlers/archive-bookable-couch/archive-bookable-couch.handler.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/bookable-couch/handlers/cancel-booking/cancel-booking.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/bookable-couch/handlers/cancel-booking/cancel-booking.command.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/bookable-couch/handlers/cancel-booking/cancel-booking.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/bookable-couch/handlers/cancel-booking/cancel-booking.handler.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/bookable-couch/handlers/cancel-booking/cancel-booking.validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/bookable-couch/handlers/cancel-booking/cancel-booking.validator.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/bookable-couch/handlers/create-booking/create-booking.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/bookable-couch/handlers/create-booking/create-booking.command.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/bookable-couch/handlers/create-booking/create-booking.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/bookable-couch/handlers/create-booking/create-booking.handler.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/bookable-couch/handlers/create-booking/create-booking.validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/bookable-couch/handlers/create-booking/create-booking.validator.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/bookable-couch/handlers/finish-bookings/finish-bookings.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/bookable-couch/handlers/finish-bookings/finish-bookings.command.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/bookable-couch/handlers/finish-bookings/finish-bookings.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/bookable-couch/handlers/finish-bookings/finish-bookings.handler.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/bookable-couch/handlers/finish-bookings/finish-bookings.validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/bookable-couch/handlers/finish-bookings/finish-bookings.validator.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/bookable-couch/subscribers/couch-created.subscriber.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/bookable-couch/subscribers/couch-created.subscriber.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/couch-booking-request/handlers/reject-couch-booking-request/reject-couch-booking-request.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/couch-booking-request/handlers/reject-couch-booking-request/reject-couch-booking-request.command.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/couch-booking-request/handlers/reject-couch-booking-request/reject-couch-booking-request.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/couch-booking-request/handlers/reject-couch-booking-request/reject-couch-booking-request.handler.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/couch-booking-request/handlers/reject-couch-booking-request/reject-couch-booking-request.validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/couch-booking-request/handlers/reject-couch-booking-request/reject-couch-booking-request.validator.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/couch-booking-request/handlers/request-couch-booking/request-couch-booking.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/couch-booking-request/handlers/request-couch-booking/request-couch-booking.command.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/couch-booking-request/handlers/request-couch-booking/request-couch-booking.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/couch-booking-request/handlers/request-couch-booking/request-couch-booking.handler.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/couch-booking-request/handlers/request-couch-booking/request-couch-booking.validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/couch-booking-request/handlers/request-couch-booking/request-couch-booking.validator.ts -------------------------------------------------------------------------------- /src/modules/booking/src/application/couch-booking-request/subscribers/couch-booking-created.subscriber.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/application/couch-booking-request/subscribers/couch-booking-created.subscriber.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/entity/bookable-couch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/entity/bookable-couch.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/entity/booking.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/entity/booking.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/entity/couch-booking.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/entity/couch-booking.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/entity/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/entity/index.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/entity/unavailable-booking.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/entity/unavailable-booking.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/enum/bookable-couch-state.enum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/enum/bookable-couch-state.enum.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/enum/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./bookable-couch-state.enum"; 2 | -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/error/all-couches-are-reserved.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/error/all-couches-are-reserved.error.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/error/booking-not-found.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/error/booking-not-found.error.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/error/booking-unavailable.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/error/booking-unavailable.error.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/error/cannot-archive-couch.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/error/cannot-archive-couch.error.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/error/cannot-book-couch.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/error/cannot-book-couch.error.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/error/cannot-cancel-booking.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/error/cannot-cancel-booking.error.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/error/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/error/index.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/event/bookable-couch-archived.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/event/bookable-couch-archived.event.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/event/bookings-finished.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/event/bookings-finished.event.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/event/couch-booking-cancelled.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/event/couch-booking-cancelled.event.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/event/couch-booking-created.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/event/couch-booking-created.event.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/event/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/event/index.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/index.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/policy/couch-booking-cancellation.policy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/policy/couch-booking-cancellation.policy.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/policy/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./couch-booking-cancellation.policy"; 2 | -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/repository/bookable-couch.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/bookable-couch/repository/bookable-couch.repository.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/bookable-couch/repository/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./bookable-couch.repository"; 2 | -------------------------------------------------------------------------------- /src/modules/booking/src/domain/booking-cancellation/entity/booking-cancellation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/booking-cancellation/entity/booking-cancellation.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/booking-cancellation/entity/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./booking-cancellation"; 2 | -------------------------------------------------------------------------------- /src/modules/booking/src/domain/booking-cancellation/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/booking-cancellation/index.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/booking-cancellation/repository/booking-cancellation.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/booking-cancellation/repository/booking-cancellation.repository.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/booking-cancellation/repository/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./booking-cancellation.repository"; 2 | -------------------------------------------------------------------------------- /src/modules/booking/src/domain/booking-cancellation/subscribers/couch-booking-cancelled.subscriber.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/booking-cancellation/subscribers/couch-booking-cancelled.subscriber.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/booking-cancellation/subscribers/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./couch-booking-cancelled.subscriber"; 2 | -------------------------------------------------------------------------------- /src/modules/booking/src/domain/couch-booking-request/entity/couch-booking-request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/couch-booking-request/entity/couch-booking-request.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/couch-booking-request/entity/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/couch-booking-request/entity/index.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/couch-booking-request/entity/request-status.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/couch-booking-request/entity/request-status.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/couch-booking-request/error/cannot-accept-booking.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/couch-booking-request/error/cannot-accept-booking.error.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/couch-booking-request/error/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./cannot-accept-booking.error"; 2 | -------------------------------------------------------------------------------- /src/modules/booking/src/domain/couch-booking-request/event/couch-booking-request-created.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/couch-booking-request/event/couch-booking-request-created.event.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/couch-booking-request/event/couch-booking-status-changed.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/couch-booking-request/event/couch-booking-status-changed.event.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/couch-booking-request/event/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/couch-booking-request/event/index.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/couch-booking-request/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/couch-booking-request/index.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/couch-booking-request/repository/couch-booking-request.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/couch-booking-request/repository/couch-booking-request.repository.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/couch-booking-request/repository/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./couch-booking-request.repository"; 2 | -------------------------------------------------------------------------------- /src/modules/booking/src/domain/couch-booking-request/service/couch-booking-request.domain-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/couch-booking-request/service/couch-booking-request.domain-service.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/couch-booking-request/service/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./couch-booking-request.domain-service"; 2 | -------------------------------------------------------------------------------- /src/modules/booking/src/domain/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/index.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/tests/bookable-couch.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/tests/bookable-couch.test.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/tests/couch-booking-request-domain-service.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/tests/couch-booking-request-domain-service.test.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/tests/couch-booking-request.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/tests/couch-booking-request.test.ts -------------------------------------------------------------------------------- /src/modules/booking/src/domain/tests/helpers/create-couch-booking-request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/domain/tests/helpers/create-couch-booking-request.ts -------------------------------------------------------------------------------- /src/modules/booking/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/index.ts -------------------------------------------------------------------------------- /src/modules/booking/src/infrastructure/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/infrastructure/config.ts -------------------------------------------------------------------------------- /src/modules/booking/src/infrastructure/container.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/infrastructure/container.ts -------------------------------------------------------------------------------- /src/modules/booking/src/infrastructure/mikro-orm/entity-schemas/bookable-couch.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/infrastructure/mikro-orm/entity-schemas/bookable-couch.entity.ts -------------------------------------------------------------------------------- /src/modules/booking/src/infrastructure/mikro-orm/entity-schemas/booking-cancellation.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/infrastructure/mikro-orm/entity-schemas/booking-cancellation.entity.ts -------------------------------------------------------------------------------- /src/modules/booking/src/infrastructure/mikro-orm/entity-schemas/booking.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/infrastructure/mikro-orm/entity-schemas/booking.ts -------------------------------------------------------------------------------- /src/modules/booking/src/infrastructure/mikro-orm/entity-schemas/couch-booking-request.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/infrastructure/mikro-orm/entity-schemas/couch-booking-request.entity.ts -------------------------------------------------------------------------------- /src/modules/booking/src/infrastructure/mikro-orm/entity-schemas/couch-booking.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/infrastructure/mikro-orm/entity-schemas/couch-booking.ts -------------------------------------------------------------------------------- /src/modules/booking/src/infrastructure/mikro-orm/entity-schemas/unavailable-booking.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/infrastructure/mikro-orm/entity-schemas/unavailable-booking.ts -------------------------------------------------------------------------------- /src/modules/booking/src/infrastructure/mikro-orm/repositories/bookable-couch.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/infrastructure/mikro-orm/repositories/bookable-couch.repository.ts -------------------------------------------------------------------------------- /src/modules/booking/src/infrastructure/mikro-orm/repositories/booking-cancellation.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/infrastructure/mikro-orm/repositories/booking-cancellation.repository.ts -------------------------------------------------------------------------------- /src/modules/booking/src/infrastructure/mikro-orm/repositories/couch-booking-request.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/src/infrastructure/mikro-orm/repositories/couch-booking-request.repository.ts -------------------------------------------------------------------------------- /src/modules/booking/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/booking/tsconfig.json -------------------------------------------------------------------------------- /src/modules/couch/.eslintignore: -------------------------------------------------------------------------------- 1 | **/*.d.ts 2 | *.json -------------------------------------------------------------------------------- /src/modules/couch/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/.eslintrc.js -------------------------------------------------------------------------------- /src/modules/couch/.swcrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/.swcrc -------------------------------------------------------------------------------- /src/modules/couch/couch.rest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/couch.rest -------------------------------------------------------------------------------- /src/modules/couch/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/package.json -------------------------------------------------------------------------------- /src/modules/couch/src/api/container.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/src/api/container.ts -------------------------------------------------------------------------------- /src/modules/couch/src/api/couch.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/src/api/couch.module.ts -------------------------------------------------------------------------------- /src/modules/couch/src/api/routes/couch.router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/src/api/routes/couch.router.ts -------------------------------------------------------------------------------- /src/modules/couch/src/api/routes/router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/src/api/routes/router.ts -------------------------------------------------------------------------------- /src/modules/couch/src/core/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/src/core/config.ts -------------------------------------------------------------------------------- /src/modules/couch/src/core/dto/couch.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/src/core/dto/couch.dto.ts -------------------------------------------------------------------------------- /src/modules/couch/src/core/dto/create-couch.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/src/core/dto/create-couch.dto.ts -------------------------------------------------------------------------------- /src/modules/couch/src/core/dto/update-couch.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/src/core/dto/update-couch.dto.ts -------------------------------------------------------------------------------- /src/modules/couch/src/core/entities/couch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/src/core/entities/couch.ts -------------------------------------------------------------------------------- /src/modules/couch/src/core/error/couch-not-found.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/src/core/error/couch-not-found.error.ts -------------------------------------------------------------------------------- /src/modules/couch/src/core/events/couch-created.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/src/core/events/couch-created.event.ts -------------------------------------------------------------------------------- /src/modules/couch/src/core/repositories/couch.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/src/core/repositories/couch.repository.ts -------------------------------------------------------------------------------- /src/modules/couch/src/core/services/couch.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/src/core/services/couch.service.ts -------------------------------------------------------------------------------- /src/modules/couch/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/src/index.ts -------------------------------------------------------------------------------- /src/modules/couch/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/couch/tsconfig.json -------------------------------------------------------------------------------- /src/modules/review/.eslintignore: -------------------------------------------------------------------------------- 1 | **/*.d.ts 2 | *.json -------------------------------------------------------------------------------- /src/modules/review/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/.eslintrc.js -------------------------------------------------------------------------------- /src/modules/review/.swcrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/.swcrc -------------------------------------------------------------------------------- /src/modules/review/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/package.json -------------------------------------------------------------------------------- /src/modules/review/review.rest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/review.rest -------------------------------------------------------------------------------- /src/modules/review/src/api/container.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/api/container.ts -------------------------------------------------------------------------------- /src/modules/review/src/api/review.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/api/review.module.ts -------------------------------------------------------------------------------- /src/modules/review/src/api/routes/booking-review.router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/api/routes/booking-review.router.ts -------------------------------------------------------------------------------- /src/modules/review/src/api/routes/router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/api/routes/router.ts -------------------------------------------------------------------------------- /src/modules/review/src/core/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/core/config.ts -------------------------------------------------------------------------------- /src/modules/review/src/core/dto/booking-review.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/core/dto/booking-review.dto.ts -------------------------------------------------------------------------------- /src/modules/review/src/core/dto/create-couch.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/core/dto/create-couch.dto.ts -------------------------------------------------------------------------------- /src/modules/review/src/core/dto/update-booking-review.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/core/dto/update-booking-review.dto.ts -------------------------------------------------------------------------------- /src/modules/review/src/core/entities/booking-review.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/core/entities/booking-review.ts -------------------------------------------------------------------------------- /src/modules/review/src/core/entities/review-details.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/core/entities/review-details.ts -------------------------------------------------------------------------------- /src/modules/review/src/core/error/booking-review-not-found.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/core/error/booking-review-not-found.error.ts -------------------------------------------------------------------------------- /src/modules/review/src/core/events/external/booking-finished.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/core/events/external/booking-finished.event.ts -------------------------------------------------------------------------------- /src/modules/review/src/core/repositories/booking-review.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/core/repositories/booking-review.repository.ts -------------------------------------------------------------------------------- /src/modules/review/src/core/services/booking-review.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/core/services/booking-review.service.ts -------------------------------------------------------------------------------- /src/modules/review/src/core/subscribers/booking-finished.subscriber.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/core/subscribers/booking-finished.subscriber.ts -------------------------------------------------------------------------------- /src/modules/review/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/src/index.ts -------------------------------------------------------------------------------- /src/modules/review/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/review/tsconfig.json -------------------------------------------------------------------------------- /src/modules/user/.eslintignore: -------------------------------------------------------------------------------- 1 | **/*.d.ts 2 | *.json -------------------------------------------------------------------------------- /src/modules/user/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/.eslintrc.js -------------------------------------------------------------------------------- /src/modules/user/.swcrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/.swcrc -------------------------------------------------------------------------------- /src/modules/user/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/package.json -------------------------------------------------------------------------------- /src/modules/user/src/api/container.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/api/container.ts -------------------------------------------------------------------------------- /src/modules/user/src/api/routes/router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/api/routes/router.ts -------------------------------------------------------------------------------- /src/modules/user/src/api/routes/user.router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/api/routes/user.router.ts -------------------------------------------------------------------------------- /src/modules/user/src/api/user.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/api/user.module.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/config.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/dto/login.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/dto/login.dto.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/dto/register.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/dto/register.dto.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/dto/update-user.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/dto/update-user.dto.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/dto/user.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/dto/user.dto.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/entities/profile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/entities/profile.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/entities/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/entities/user.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/error/invalid-email-or-password.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/error/invalid-email-or-password.error.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/error/user-exists.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/error/user-exists.error.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/error/user-not-found.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/error/user-not-found.error.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/events/user-created.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/events/user-created.event.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/repositories/profile.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/repositories/profile.repository.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/repositories/user.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/repositories/user.repository.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/services/auth.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/services/auth.service.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/services/password-hasher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/services/password-hasher.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/services/user.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/services/user.service.ts -------------------------------------------------------------------------------- /src/modules/user/src/core/subscribers/user-created.subscriber.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/core/subscribers/user-created.subscriber.ts -------------------------------------------------------------------------------- /src/modules/user/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/src/index.ts -------------------------------------------------------------------------------- /src/modules/user/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/tsconfig.json -------------------------------------------------------------------------------- /src/modules/user/user.rest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/modules/user/user.rest -------------------------------------------------------------------------------- /src/shared/abstract-core/.eslintignore: -------------------------------------------------------------------------------- 1 | **/*.d.ts 2 | *.json -------------------------------------------------------------------------------- /src/shared/abstract-core/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/.eslintrc.js -------------------------------------------------------------------------------- /src/shared/abstract-core/.swcrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/.swcrc -------------------------------------------------------------------------------- /src/shared/abstract-core/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/package.json -------------------------------------------------------------------------------- /src/shared/abstract-core/src/auth/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./user"; 2 | -------------------------------------------------------------------------------- /src/shared/abstract-core/src/auth/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/src/auth/user.ts -------------------------------------------------------------------------------- /src/shared/abstract-core/src/command/command-dispatcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/src/command/command-dispatcher.ts -------------------------------------------------------------------------------- /src/shared/abstract-core/src/command/command-handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/src/command/command-handler.ts -------------------------------------------------------------------------------- /src/shared/abstract-core/src/command/command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/src/command/command.ts -------------------------------------------------------------------------------- /src/shared/abstract-core/src/command/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/src/command/index.ts -------------------------------------------------------------------------------- /src/shared/abstract-core/src/error/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./travelhoop.error"; 2 | -------------------------------------------------------------------------------- /src/shared/abstract-core/src/error/travelhoop.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/src/error/travelhoop.error.ts -------------------------------------------------------------------------------- /src/shared/abstract-core/src/event/event.dispatcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/src/event/event.dispatcher.ts -------------------------------------------------------------------------------- /src/shared/abstract-core/src/event/event.subscriber.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/src/event/event.subscriber.ts -------------------------------------------------------------------------------- /src/shared/abstract-core/src/event/event.ts: -------------------------------------------------------------------------------- 1 | export interface Event { 2 | name: string; 3 | payload: object; 4 | } 5 | -------------------------------------------------------------------------------- /src/shared/abstract-core/src/event/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/src/event/index.ts -------------------------------------------------------------------------------- /src/shared/abstract-core/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/src/index.ts -------------------------------------------------------------------------------- /src/shared/abstract-core/src/logger/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./logger"; 2 | -------------------------------------------------------------------------------- /src/shared/abstract-core/src/logger/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/src/logger/logger.ts -------------------------------------------------------------------------------- /src/shared/abstract-core/src/messaging/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/src/messaging/index.ts -------------------------------------------------------------------------------- /src/shared/abstract-core/src/messaging/message-dispatcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/src/messaging/message-dispatcher.ts -------------------------------------------------------------------------------- /src/shared/abstract-core/src/messaging/message.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/src/messaging/message.ts -------------------------------------------------------------------------------- /src/shared/abstract-core/src/queue/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./queue"; 2 | -------------------------------------------------------------------------------- /src/shared/abstract-core/src/queue/queue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/src/queue/queue.ts -------------------------------------------------------------------------------- /src/shared/abstract-core/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/abstract-core/tsconfig.json -------------------------------------------------------------------------------- /src/shared/infrastructure/.eslintignore: -------------------------------------------------------------------------------- 1 | **/*.d.ts 2 | *.json -------------------------------------------------------------------------------- /src/shared/infrastructure/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/.eslintrc.js -------------------------------------------------------------------------------- /src/shared/infrastructure/.swcrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/.swcrc -------------------------------------------------------------------------------- /src/shared/infrastructure/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/package.json -------------------------------------------------------------------------------- /src/shared/infrastructure/src/command/command-dispatcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/command/command-dispatcher.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/command/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./command-dispatcher"; 2 | -------------------------------------------------------------------------------- /src/shared/infrastructure/src/config/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./load-env"; 2 | -------------------------------------------------------------------------------- /src/shared/infrastructure/src/config/load-env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/config/load-env.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/container/as-array.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/container/as-array.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/container/as-dictionary.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/container/as-dictionary.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/container/container-builder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/container/container-builder.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/container/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/container/index.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/container/middleware/scope-per-request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/container/middleware/scope-per-request.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/event/event.dispatcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/event/event.dispatcher.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/express/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/express/index.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/express/middleware/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/express/middleware/auth.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/express/middleware/error-handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/express/middleware/error-handler.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/express/middleware/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/express/middleware/index.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/express/middleware/middleware.type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/express/middleware/middleware.type.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/express/middleware/request-context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/express/middleware/request-context.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/express/middleware/scheduler-token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/express/middleware/scheduler-token.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/express/request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/express/request.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/express/response.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/express/response.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/index.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/logger/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/logger/index.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/logger/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/logger/logger.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/logger/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/logger/types.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/messaging/background.message-dispatcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/messaging/background.message-dispatcher.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/messaging/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/messaging/index.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/messaging/message-broker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/messaging/message-broker.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/messaging/redis.message-dispatcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/messaging/redis.message-dispatcher.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/mikro-orm/db-connection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/mikro-orm/db-connection.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/mikro-orm/decorators/transactional-command-dispatcher.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/mikro-orm/decorators/transactional-command-dispatcher.decorator.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/mikro-orm/entity-schema/aggregate-root.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/mikro-orm/entity-schema/aggregate-root.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/mikro-orm/entity-schema/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./aggregate-root"; 2 | -------------------------------------------------------------------------------- /src/shared/infrastructure/src/mikro-orm/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/mikro-orm/index.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/mikro-orm/repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/mikro-orm/repository.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/mikro-orm/types/aggregate-id.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/mikro-orm/types/aggregate-id.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/mikro-orm/types/guid-type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/mikro-orm/types/guid-type.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/mikro-orm/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/mikro-orm/types/index.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/module/app-module.factory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/module/app-module.factory.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/module/app-module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/module/app-module.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/module/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/module/index.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/redis/redis.queue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/redis/redis.queue.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/src/typings/global.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/src/typings/global.d.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/infrastructure/tsconfig.json -------------------------------------------------------------------------------- /src/shared/kernel/.eslintignore: -------------------------------------------------------------------------------- 1 | **/*.d.ts 2 | *.json -------------------------------------------------------------------------------- /src/shared/kernel/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/kernel/.eslintrc.js -------------------------------------------------------------------------------- /src/shared/kernel/.swcrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/kernel/.swcrc -------------------------------------------------------------------------------- /src/shared/kernel/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/kernel/package.json -------------------------------------------------------------------------------- /src/shared/kernel/src/aggregate/aggregate-id.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/kernel/src/aggregate/aggregate-id.ts -------------------------------------------------------------------------------- /src/shared/kernel/src/aggregate/aggregate-root.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/kernel/src/aggregate/aggregate-root.ts -------------------------------------------------------------------------------- /src/shared/kernel/src/aggregate/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/kernel/src/aggregate/index.ts -------------------------------------------------------------------------------- /src/shared/kernel/src/domain-event/domain-event.dispatcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/kernel/src/domain-event/domain-event.dispatcher.ts -------------------------------------------------------------------------------- /src/shared/kernel/src/domain-event/domain-event.subscriber.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/kernel/src/domain-event/domain-event.subscriber.ts -------------------------------------------------------------------------------- /src/shared/kernel/src/domain-event/domain.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/kernel/src/domain-event/domain.event.ts -------------------------------------------------------------------------------- /src/shared/kernel/src/domain-event/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/kernel/src/domain-event/index.ts -------------------------------------------------------------------------------- /src/shared/kernel/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/kernel/src/index.ts -------------------------------------------------------------------------------- /src/shared/kernel/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/src/shared/kernel/tsconfig.json -------------------------------------------------------------------------------- /tools/toolchain/.eslintignore: -------------------------------------------------------------------------------- 1 | includes/.eslintrc.js -------------------------------------------------------------------------------- /tools/toolchain/.swcrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/tools/toolchain/.swcrc -------------------------------------------------------------------------------- /tools/toolchain/includes/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/tools/toolchain/includes/.eslintrc.js -------------------------------------------------------------------------------- /tools/toolchain/includes/tsconfig.web.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/tools/toolchain/includes/tsconfig.web.json -------------------------------------------------------------------------------- /tools/toolchain/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgce/modular-monolith-nodejs/HEAD/tools/toolchain/package.json -------------------------------------------------------------------------------- /tools/toolchain/patch/modern-module-resolution.js: -------------------------------------------------------------------------------- 1 | require('@rushstack/eslint-patch/modern-module-resolution'); 2 | --------------------------------------------------------------------------------