create-prod-backend 1.4.6 → 1.4.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # create-prod-backend
2
2
 
3
- Build a **production-ready Express backend** in seconds — no boilerplate, no setup headaches.
3
+ Build a **production-ready Next.js App & Express backend** in seconds — no boilerplate, no setup headaches.
4
4
 
5
5
  ---
6
6
 
@@ -35,6 +35,7 @@ create-prod-backend
35
35
 
36
36
  ## What It Generates
37
37
 
38
+ ### Express Backend
38
39
  ```
39
40
  project-name/
40
41
 
@@ -51,13 +52,42 @@ project-name/
51
52
  │ └── constants.js
52
53
 
53
54
  ├── public/
54
-
55
+ └──temp/
56
+ |
55
57
  ├── .env
58
+ ├── Dockerfile
59
+ ├── .dockerignore
60
+ ├── docker-compose.yml
56
61
  ├── .gitignore
57
62
  ├── package.json
58
63
  └── README.md
59
64
  ```
60
65
 
66
+ ### Next.js App
67
+
68
+ ```
69
+ my-app/
70
+ │── app/
71
+ │ ├── layout.js
72
+ │ ├── page.js
73
+ │ ├── globals.css
74
+
75
+ │── public/
76
+ │ ├── favicon.ico
77
+ │ ├── images...
78
+
79
+ │── node_modules/
80
+
81
+ │── package.json
82
+ │── package-lock.json / yarn.lock
83
+ │── next.config.js
84
+ │── jsconfig.json / tsconfig.json
85
+ │── .gitignore
86
+ │── README.md
87
+
88
+ ```
89
+
90
+
61
91
  ---
62
92
 
63
93
  ## Usage
@@ -134,8 +164,8 @@ Your backend is ready!
134
164
 
135
165
  * Service layer support
136
166
  * Auth template (JWT)
137
- * Docker setup
138
- * API documentation (Swagger)
167
+ * Docker setup - ✔️
168
+ * Soon Implement own Next.js - currently uses vercel package
139
169
  * TypeScript support
140
170
 
141
171
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prod-backend",
3
- "version": "1.4.6",
3
+ "version": "1.4.8",
4
4
  "description": "A cli tool to generate a production-ready backend boilerplate with Express.js, MongoDB, and essential features.",
5
5
  "main": "index.js",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -27,7 +27,7 @@ export default async function runCLI() {
27
27
  await createProject(answer);
28
28
 
29
29
  console.log(chalk.green(`\n${chalk.bold(answer.projectName)} project created successfully!\n`));
30
- console.log(chalk.yellow("You can change Docker file according to your need"));
30
+ if(answer.useDocker) console.log(chalk.yellow("You can change Docker file according to your need"));
31
31
  console.log(chalk.yellow("Happy coding! :)"));
32
32
  } catch (error) {
33
33
  console.error(chalk.red(("Error:", error.message)));