├── .dockerignore ├── .env ├── .eslintrc.js ├── .gitignore ├── .prettierrc ├── Dockerfile ├── LICENSE ├── README.md ├── apps ├── api │ ├── src │ │ ├── app.controller.spec.ts │ │ ├── app.controller.ts │ │ ├── app.module.ts │ │ ├── app.service.ts │ │ ├── main.ts │ │ └── services │ │ │ ├── entities │ │ │ └── service.entity.ts │ │ │ ├── services.controller.spec.ts │ │ │ ├── services.controller.ts │ │ │ ├── services.module.ts │ │ │ ├── services.service.spec.ts │ │ │ └── services.service.ts │ ├── test │ │ ├── app.e2e-spec.ts │ │ └── jest-e2e.json │ └── tsconfig.app.json └── microservices │ ├── src │ ├── app.controller.spec.ts │ ├── app.controller.ts │ ├── app.module.ts │ ├── app.service.ts │ ├── main.ts │ └── services │ │ ├── services.controller.spec.ts │ │ └── services.controller.ts │ ├── test │ ├── app.e2e-spec.ts │ └── jest-e2e.json │ └── tsconfig.app.json ├── docs ├── nestjs k8 microservices.png ├── nestjs microservices.png └── request flow.png ├── k8-cleanup.sh ├── k8-startup.sh ├── k8-templates ├── k8-api.yaml ├── k8-config.yaml ├── k8-kafka.yaml ├── k8-microservices.yaml └── k8-secret.yaml ├── libs └── common-dto │ ├── src │ ├── common-dto.module.ts │ ├── common-dto.service.spec.ts │ ├── common-dto.service.ts │ ├── index.ts │ └── services │ │ └── dto │ │ ├── create-service.dto.ts │ │ ├── delete-service.dto.ts │ │ ├── event.dto.ts │ │ ├── index.ts │ │ ├── kafka-service.dto.ts │ │ └── update-service.dto.ts │ └── tsconfig.lib.json ├── nest-cli.json ├── package.json ├── tsconfig.build.json └── tsconfig.json /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | k8-templates/ -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- 1 | KAFKA_BROKERS=kubernetes.docker.internal:30094 -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/.prettierrc -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/README.md -------------------------------------------------------------------------------- /apps/api/src/app.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/api/src/app.controller.spec.ts -------------------------------------------------------------------------------- /apps/api/src/app.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/api/src/app.controller.ts -------------------------------------------------------------------------------- /apps/api/src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/api/src/app.module.ts -------------------------------------------------------------------------------- /apps/api/src/app.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/api/src/app.service.ts -------------------------------------------------------------------------------- /apps/api/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/api/src/main.ts -------------------------------------------------------------------------------- /apps/api/src/services/entities/service.entity.ts: -------------------------------------------------------------------------------- 1 | export class Service {} 2 | -------------------------------------------------------------------------------- /apps/api/src/services/services.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/api/src/services/services.controller.spec.ts -------------------------------------------------------------------------------- /apps/api/src/services/services.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/api/src/services/services.controller.ts -------------------------------------------------------------------------------- /apps/api/src/services/services.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/api/src/services/services.module.ts -------------------------------------------------------------------------------- /apps/api/src/services/services.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/api/src/services/services.service.spec.ts -------------------------------------------------------------------------------- /apps/api/src/services/services.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/api/src/services/services.service.ts -------------------------------------------------------------------------------- /apps/api/test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/api/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /apps/api/test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/api/test/jest-e2e.json -------------------------------------------------------------------------------- /apps/api/tsconfig.app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/api/tsconfig.app.json -------------------------------------------------------------------------------- /apps/microservices/src/app.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/microservices/src/app.controller.spec.ts -------------------------------------------------------------------------------- /apps/microservices/src/app.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/microservices/src/app.controller.ts -------------------------------------------------------------------------------- /apps/microservices/src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/microservices/src/app.module.ts -------------------------------------------------------------------------------- /apps/microservices/src/app.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/microservices/src/app.service.ts -------------------------------------------------------------------------------- /apps/microservices/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/microservices/src/main.ts -------------------------------------------------------------------------------- /apps/microservices/src/services/services.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/microservices/src/services/services.controller.spec.ts -------------------------------------------------------------------------------- /apps/microservices/src/services/services.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/microservices/src/services/services.controller.ts -------------------------------------------------------------------------------- /apps/microservices/test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/microservices/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /apps/microservices/test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/microservices/test/jest-e2e.json -------------------------------------------------------------------------------- /apps/microservices/tsconfig.app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/apps/microservices/tsconfig.app.json -------------------------------------------------------------------------------- /docs/nestjs k8 microservices.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/docs/nestjs k8 microservices.png -------------------------------------------------------------------------------- /docs/nestjs microservices.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/docs/nestjs microservices.png -------------------------------------------------------------------------------- /docs/request flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/docs/request flow.png -------------------------------------------------------------------------------- /k8-cleanup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/k8-cleanup.sh -------------------------------------------------------------------------------- /k8-startup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/k8-startup.sh -------------------------------------------------------------------------------- /k8-templates/k8-api.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/k8-templates/k8-api.yaml -------------------------------------------------------------------------------- /k8-templates/k8-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/k8-templates/k8-config.yaml -------------------------------------------------------------------------------- /k8-templates/k8-kafka.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/k8-templates/k8-kafka.yaml -------------------------------------------------------------------------------- /k8-templates/k8-microservices.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/k8-templates/k8-microservices.yaml -------------------------------------------------------------------------------- /k8-templates/k8-secret.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/k8-templates/k8-secret.yaml -------------------------------------------------------------------------------- /libs/common-dto/src/common-dto.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/libs/common-dto/src/common-dto.module.ts -------------------------------------------------------------------------------- /libs/common-dto/src/common-dto.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/libs/common-dto/src/common-dto.service.spec.ts -------------------------------------------------------------------------------- /libs/common-dto/src/common-dto.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/libs/common-dto/src/common-dto.service.ts -------------------------------------------------------------------------------- /libs/common-dto/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/libs/common-dto/src/index.ts -------------------------------------------------------------------------------- /libs/common-dto/src/services/dto/create-service.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/libs/common-dto/src/services/dto/create-service.dto.ts -------------------------------------------------------------------------------- /libs/common-dto/src/services/dto/delete-service.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/libs/common-dto/src/services/dto/delete-service.dto.ts -------------------------------------------------------------------------------- /libs/common-dto/src/services/dto/event.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/libs/common-dto/src/services/dto/event.dto.ts -------------------------------------------------------------------------------- /libs/common-dto/src/services/dto/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/libs/common-dto/src/services/dto/index.ts -------------------------------------------------------------------------------- /libs/common-dto/src/services/dto/kafka-service.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/libs/common-dto/src/services/dto/kafka-service.dto.ts -------------------------------------------------------------------------------- /libs/common-dto/src/services/dto/update-service.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/libs/common-dto/src/services/dto/update-service.dto.ts -------------------------------------------------------------------------------- /libs/common-dto/tsconfig.lib.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/libs/common-dto/tsconfig.lib.json -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/nest-cli.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/package.json -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thiagotigaz/microservices-nestjs-k8/HEAD/tsconfig.json --------------------------------------------------------------------------------