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.
- package/License.yaml +0 -0
- package/README.md +140 -0
- package/dist/index.js +29 -0
- package/package.json +47 -0
- package/template/.dockerignore +6 -0
- package/template/.env.example +12 -0
- package/template/.prettierrc +4 -0
- package/template/Dockerfile +48 -0
- package/template/README.md +99 -0
- package/template/aborescence.txt +238 -0
- package/template/docker-compose-dev.yml +22 -0
- package/template/docker-compose-prod.yml +20 -0
- package/template/dockerfile.dev +25 -0
- package/template/eslint.config.mjs +35 -0
- package/template/nest-cli.json +8 -0
- package/template/package.json +98 -0
- package/template/pnpm-lock.yaml +7665 -0
- package/template/prisma/schema.prisma +48 -0
- package/template/src/app.controller.spec.ts +22 -0
- package/template/src/app.controller.ts +20 -0
- package/template/src/app.module.ts +49 -0
- package/template/src/app.service.ts +8 -0
- package/template/src/common/auth/auth.controller.ts +51 -0
- package/template/src/common/auth/auth.module.ts +24 -0
- package/template/src/common/auth/auth.service.ts +72 -0
- package/template/src/common/auth/dto/create-auth.dto.ts +12 -0
- package/template/src/common/auth/dto/update-auth.dto.ts +11 -0
- package/template/src/common/auth/jwt/auth.guard.ts +45 -0
- package/template/src/common/auth/jwt/constant.ts +3 -0
- package/template/src/common/auth/jwt/jwt.guard.ts +6 -0
- package/template/src/common/auth/jwt/jwt.strategy.ts +46 -0
- package/template/src/common/auth/role/role.decorators.ts +3 -0
- package/template/src/common/auth/role/role.enum.ts +7 -0
- package/template/src/common/auth/role/role.guard.ts +34 -0
- package/template/src/common/http/http-client.module.ts +23 -0
- package/template/src/common/http/http-client.service.ts +127 -0
- package/template/src/common/logger/error.logging.ts +29 -0
- package/template/src/common/logger/logging.interceptor.ts +22 -0
- package/template/src/common/notification/notification.module.ts +12 -0
- package/template/src/common/notification/notification.service.ts +74 -0
- package/template/src/config/db.module.ts +15 -0
- package/template/src/config/db.ts +22 -0
- package/template/src/config/env.validation.ts +35 -0
- package/template/src/features/kafka/kafka.consumer.controller.ts +66 -0
- package/template/src/features/kafka/kafka.consumer.service.ts +89 -0
- package/template/src/features/kafka/kafka.module.ts +20 -0
- package/template/src/features/kafka/kafka.producer.service.ts +29 -0
- package/template/src/features/user/core/dto/create-user.dto.ts +28 -0
- package/template/src/features/user/core/dto/update-user.dto.ts +66 -0
- package/template/src/features/user/core/interface/user.repository.interface.ts +20 -0
- package/template/src/features/user/core/use-case/user.service.ts +101 -0
- package/template/src/features/user/inBound/user.controller.ts +117 -0
- package/template/src/features/user/outBound/user.repository.ts +332 -0
- package/template/src/features/user/user.module.ts +14 -0
- package/template/src/main.ts +59 -0
- package/template/src/utils/crypt.ts +36 -0
- package/template/src/utils/generate.ts +90 -0
- package/template/src/utils/logging.prisma.ts +17 -0
- package/template/src/utils/validation-fields.ts +15 -0
- package/template/src/utils/validation-option.ts +94 -0
- package/template/src/utils/validators/phoneNumber.validate.ts +22 -0
- package/template/test/app.e2e-spec.js +19 -0
- package/template/test/app.e2e-spec.ts +25 -0
- package/template/test/jest-e2e.json +9 -0
- package/template/tsconfig.build.json +27 -0
- package/template/tsconfig.build.tsbuildinfo +1 -0
- 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
|
+
}
|