express-project-builder 1.0.7 → 1.0.8
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 +17 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -256,3 +256,20 @@ my-test-project/
|
|
|
256
256
|
meta,
|
|
257
257
|
};
|
|
258
258
|
```
|
|
259
|
+
|
|
260
|
+
- /src/**config/index.ts** <br/> Central configuration file that manages environment variables and application settings. This file provides a structured way to access environment variables throughout the application.
|
|
261
|
+
|
|
262
|
+
```typescript
|
|
263
|
+
// In config/index.ts
|
|
264
|
+
export default {
|
|
265
|
+
// ... other env configurations
|
|
266
|
+
|
|
267
|
+
// New Env file Setup after ensure your .env file same secret is declear.
|
|
268
|
+
your_another_env_secret: ensureEnv("YOUR_ANOTHER_ENV_SECRET"),
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
// Accessing the configuration in other files
|
|
272
|
+
import config from "../../config";
|
|
273
|
+
|
|
274
|
+
const your_another_env_secret = config.your_another_env_secret;
|
|
275
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-project-builder",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
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",
|