express-project-builder 1.0.3 → 1.0.4
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/README.md +84 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,3 +47,87 @@ npx express-project-builder my-test-project
|
|
|
47
47
|
- ### Project Building & Formatting (Prettier & ESLint)
|
|
48
48
|
|
|
49
49
|
## [Folder Structure](#Folder-Structure)
|
|
50
|
+
|
|
51
|
+
```ts
|
|
52
|
+
my-test-project/
|
|
53
|
+
├── node_modules/
|
|
54
|
+
├── dist/
|
|
55
|
+
│ └── server.js
|
|
56
|
+
├── generated/
|
|
57
|
+
│ └── prisma/
|
|
58
|
+
├── prisma/
|
|
59
|
+
│ └── schema.prisma
|
|
60
|
+
├── src/
|
|
61
|
+
│ ├── app/
|
|
62
|
+
│ ├── builder/
|
|
63
|
+
│ │ ├── MongooseQueryBuilder.ts
|
|
64
|
+
│ │ └── PrismaQueryBuilder.ts
|
|
65
|
+
│ ├── config/
|
|
66
|
+
│ │ └── index.ts
|
|
67
|
+
│ ├── constants/
|
|
68
|
+
│ │ └── userRole_constant.ts
|
|
69
|
+
│ ├── errors/
|
|
70
|
+
│ │ ├── AppError.ts
|
|
71
|
+
│ │ ├── handleMongooseCastError.ts
|
|
72
|
+
│ │ ├── handleMongooseDuplicateError.ts
|
|
73
|
+
│ │ ├── handleMongooseValidationError.ts
|
|
74
|
+
│ │ ├── handlePrismaCastError.ts
|
|
75
|
+
│ │ ├── handlePrismaDuplicateError.ts
|
|
76
|
+
│ │ ├── handlePrismaValidationError.ts
|
|
77
|
+
│ │ └── handleZodValidationError.ts
|
|
78
|
+
│ ├── helpers/
|
|
79
|
+
│ ├── interfaces/
|
|
80
|
+
│ │ ├── emailFormat.ts
|
|
81
|
+
│ │ ├── errors.ts
|
|
82
|
+
│ │ ├── index.d.ts
|
|
83
|
+
│ │ ├── jwtToken_interface.ts
|
|
84
|
+
│ │ └── userRole_type.ts
|
|
85
|
+
│ ├── lib/
|
|
86
|
+
│ ├── middlewares/
|
|
87
|
+
│ │ ├── auth.ts
|
|
88
|
+
│ │ ├── bigIntSerializer.ts
|
|
89
|
+
│ │ ├── formDataToSetJSONformatData.ts
|
|
90
|
+
│ │ ├── globalErrorHandler.ts
|
|
91
|
+
│ │ ├── handleFileUpload.ts
|
|
92
|
+
│ │ ├── notFound.ts
|
|
93
|
+
│ │ ├── rateLimitingHandler.ts
|
|
94
|
+
│ │ └── validateRequest.ts
|
|
95
|
+
│ ├── modules/
|
|
96
|
+
│ │ └── demo_modules/
|
|
97
|
+
│ │ ├── demo_modules_constant.ts
|
|
98
|
+
│ │ ├── demo_modules_controller.ts
|
|
99
|
+
│ │ ├── demo_modules_helpers.ts
|
|
100
|
+
│ │ ├── demo_modules_interface.ts
|
|
101
|
+
│ │ ├── demo_modules_lib.ts
|
|
102
|
+
│ │ ├── demo_modules_model.ts
|
|
103
|
+
│ │ ├── demo_modules_route.ts
|
|
104
|
+
│ │ ├── demo_modules_service.ts
|
|
105
|
+
│ │ ├── demo_modules_utils.ts
|
|
106
|
+
│ │ └── demo_modules_validationZodSchema.ts
|
|
107
|
+
│ ├── routers/
|
|
108
|
+
│ │ └── index.ts
|
|
109
|
+
│ ├── schemas/
|
|
110
|
+
│ ├── seed/
|
|
111
|
+
│ ├── shared/
|
|
112
|
+
│ │ └── prisma.ts
|
|
113
|
+
│ ├── types/
|
|
114
|
+
│ ├── utils/
|
|
115
|
+
│ │ ├── catchAsync.ts
|
|
116
|
+
│ │ ├── commonUtils.ts
|
|
117
|
+
│ │ ├── date_Time_Validation.ts
|
|
118
|
+
│ │ ├── logger.ts
|
|
119
|
+
│ │ ├── node_cache.ts
|
|
120
|
+
│ │ ├── removeUploadedFiles.ts
|
|
121
|
+
│ │ ├── sendEmail.ts
|
|
122
|
+
│ │ └── sendResponse.ts
|
|
123
|
+
│ ├── app.ts
|
|
124
|
+
│ └── server.ts
|
|
125
|
+
├── .env
|
|
126
|
+
├── .env.example
|
|
127
|
+
├── .gitignore
|
|
128
|
+
├── .prettierrc.json
|
|
129
|
+
├── eslint.config.mjs
|
|
130
|
+
├── package-lock.json
|
|
131
|
+
├── package.json
|
|
132
|
+
└── tsconfig.json
|
|
133
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-project-builder",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A powerful and professional Express.js project generator CLI that instantly scaffolds a production-ready backend with TypeScript, modular architecture, and built-in support for MongoDB (Mongoose) or PostgreSQL (Prisma). Includes authentication, error handling, rate limiting, file upload, caching, and utility functions—so you can focus on building features instead of boilerplate. Perfect for kickstarting your next Express.js API project with best practices and modern tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/bin/index.js",
|