nestjs-archi-cli 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/License.yaml +0 -0
  2. package/README.md +140 -0
  3. package/dist/index.js +29 -0
  4. package/package.json +47 -0
  5. package/template/.dockerignore +6 -0
  6. package/template/.env.example +12 -0
  7. package/template/.prettierrc +4 -0
  8. package/template/Dockerfile +48 -0
  9. package/template/README.md +99 -0
  10. package/template/aborescence.txt +238 -0
  11. package/template/docker-compose-dev.yml +22 -0
  12. package/template/docker-compose-prod.yml +20 -0
  13. package/template/dockerfile.dev +25 -0
  14. package/template/eslint.config.mjs +35 -0
  15. package/template/nest-cli.json +8 -0
  16. package/template/package.json +98 -0
  17. package/template/pnpm-lock.yaml +7665 -0
  18. package/template/prisma/schema.prisma +48 -0
  19. package/template/src/app.controller.spec.ts +22 -0
  20. package/template/src/app.controller.ts +20 -0
  21. package/template/src/app.module.ts +49 -0
  22. package/template/src/app.service.ts +8 -0
  23. package/template/src/common/auth/auth.controller.ts +51 -0
  24. package/template/src/common/auth/auth.module.ts +24 -0
  25. package/template/src/common/auth/auth.service.ts +72 -0
  26. package/template/src/common/auth/dto/create-auth.dto.ts +12 -0
  27. package/template/src/common/auth/dto/update-auth.dto.ts +11 -0
  28. package/template/src/common/auth/jwt/auth.guard.ts +45 -0
  29. package/template/src/common/auth/jwt/constant.ts +3 -0
  30. package/template/src/common/auth/jwt/jwt.guard.ts +6 -0
  31. package/template/src/common/auth/jwt/jwt.strategy.ts +46 -0
  32. package/template/src/common/auth/role/role.decorators.ts +3 -0
  33. package/template/src/common/auth/role/role.enum.ts +7 -0
  34. package/template/src/common/auth/role/role.guard.ts +34 -0
  35. package/template/src/common/http/http-client.module.ts +23 -0
  36. package/template/src/common/http/http-client.service.ts +127 -0
  37. package/template/src/common/logger/error.logging.ts +29 -0
  38. package/template/src/common/logger/logging.interceptor.ts +22 -0
  39. package/template/src/common/notification/notification.module.ts +12 -0
  40. package/template/src/common/notification/notification.service.ts +74 -0
  41. package/template/src/config/db.module.ts +15 -0
  42. package/template/src/config/db.ts +22 -0
  43. package/template/src/config/env.validation.ts +35 -0
  44. package/template/src/features/kafka/kafka.consumer.controller.ts +66 -0
  45. package/template/src/features/kafka/kafka.consumer.service.ts +89 -0
  46. package/template/src/features/kafka/kafka.module.ts +20 -0
  47. package/template/src/features/kafka/kafka.producer.service.ts +29 -0
  48. package/template/src/features/user/core/dto/create-user.dto.ts +28 -0
  49. package/template/src/features/user/core/dto/update-user.dto.ts +66 -0
  50. package/template/src/features/user/core/interface/user.repository.interface.ts +20 -0
  51. package/template/src/features/user/core/use-case/user.service.ts +101 -0
  52. package/template/src/features/user/inBound/user.controller.ts +117 -0
  53. package/template/src/features/user/outBound/user.repository.ts +332 -0
  54. package/template/src/features/user/user.module.ts +14 -0
  55. package/template/src/main.ts +59 -0
  56. package/template/src/utils/crypt.ts +36 -0
  57. package/template/src/utils/generate.ts +90 -0
  58. package/template/src/utils/logging.prisma.ts +17 -0
  59. package/template/src/utils/validation-fields.ts +15 -0
  60. package/template/src/utils/validation-option.ts +94 -0
  61. package/template/src/utils/validators/phoneNumber.validate.ts +22 -0
  62. package/template/test/app.e2e-spec.js +19 -0
  63. package/template/test/app.e2e-spec.ts +25 -0
  64. package/template/test/jest-e2e.json +9 -0
  65. package/template/tsconfig.build.json +27 -0
  66. package/template/tsconfig.build.tsbuildinfo +1 -0
  67. package/template/tsconfig.json +29 -0
@@ -0,0 +1,29 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "commonjs",
4
+ "declaration": true,
5
+ "removeComments": true,
6
+ "emitDecoratorMetadata": true,
7
+ "experimentalDecorators": true,
8
+ "allowSyntheticDefaultImports": true,
9
+ "target": "ES2023",
10
+ "sourceMap": true,
11
+ "outDir": "./dist",
12
+ "baseUrl": "./",
13
+ "paths": {
14
+ "features/*": ["src/features/*"],
15
+ "config/*": ["src/config/*"],
16
+ "common/*": ["src/common/*"],
17
+ "utils/*": ["src/utils/*"]
18
+ },
19
+ "incremental": true,
20
+ "skipLibCheck": true,
21
+ "strictNullChecks": true,
22
+ "forceConsistentCasingInFileNames": true,
23
+ "noImplicitAny": false,
24
+ "strictBindCallApply": false,
25
+ "moduleResolution": "node",
26
+ "esModuleInterop": true,
27
+ "noFallthroughCasesInSwitch": false
28
+ }
29
+ }