backend-scaffolder 1.0.0 → 1.0.3

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 (3) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +83 -93
  3. package/package.json +28 -8
package/LICENSE ADDED
Binary file
package/README.md CHANGED
@@ -1,152 +1,136 @@
1
- # Backend Scaffolder
1
+ # Backend Scaffolder 🚀
2
2
 
3
- A simple CLI tool that instantly generates a production-ready Node.js + Express backend folder structure.
3
+ Generate a clean and scalable Node.js backend folder structure instantly.
4
+
5
+ Perfect for developers who are tired of manually creating the same folders and files every time they start a new backend project.
4
6
 
5
7
  ## Features
6
8
 
7
- * Creates a clean backend architecture
8
- * Generates common folders:
9
-
10
- * config
11
- * controllers
12
- * middlewares
13
- * models
14
- * routes
15
- * services
16
- * sockets
17
- * utils
18
- * Generates starter files:
19
-
20
- * server.js
21
- * app.js
22
- * package.json
23
- * .gitignore
24
- * Adds `.gitkeep` files to preserve empty directories
25
- * Ready for Express development
9
+ Create a production-ready backend structure
26
10
 
27
- ---
11
+ ✅ Save setup time
28
12
 
29
- ## Installation
13
+ Consistent project architecture
30
14
 
31
- ### Global Installation
15
+ Beginner-friendly
32
16
 
33
- ```bash
34
- npm install -g @abdurwebdev/backend-scaffolder
35
- ```
17
+ ✅ Lightweight CLI tool
36
18
 
37
19
  ---
38
20
 
39
- ## Usage
21
+ ## Installation
40
22
 
41
- Create a new backend project:
23
+ Install globally:
42
24
 
43
25
  ```bash
44
- create-backend-layout my-api
26
+ npm install -g backend-scaffolder
45
27
  ```
46
28
 
47
- If no project name is provided:
29
+ Or use directly:
48
30
 
49
31
  ```bash
50
- create-backend-layout
32
+ npx backend-scaffolder my-project
51
33
  ```
52
34
 
53
- Default folder name:
35
+ ---
36
+
37
+ ## Usage
38
+
39
+ Create a new backend project structure:
54
40
 
55
41
  ```bash
56
- my-backend-app
42
+ create-backend-layout my-project
57
43
  ```
58
44
 
59
- ---
60
-
61
- ## Generated Structure
45
+ This will generate:
62
46
 
63
47
  ```text
64
- my-api/
48
+ my-project/
65
49
 
66
- ├── logs/
50
+ ├── config/
51
+ ├── controllers/
52
+ ├── middlewares/
53
+ ├── models/
54
+ ├── routes/
55
+ ├── utils/
56
+ ├── views/
67
57
 
68
- ├── src/
69
- ├── config/
70
- │ ├── controllers/
71
- │ ├── middlewares/
72
- │ ├── models/
73
- │ ├── routes/
74
- │ ├── services/
75
- │ ├── sockets/
76
- │ └── utils/
77
-
78
- ├── server.js
79
- ├── .gitignore
80
- └── package.json
58
+ ├── app.js
59
+ ├── package.json
60
+ └── .gitignore
81
61
  ```
82
62
 
83
63
  ---
84
64
 
85
- ## Generated app.js
86
-
87
- ```javascript
88
- const express = require('express');
89
- const cors = require('cors');
90
-
91
- const app = express();
65
+ ## Example
92
66
 
93
- app.use(cors());
94
- app.use(express.json());
95
- app.use(express.urlencoded({ extended: true }));
67
+ ```bash
68
+ create-backend-layout ecommerce-api
69
+ ```
96
70
 
97
- app.get('/', (req, res) => {
98
- res.json({ message: "API is running..." });
99
- });
71
+ Output:
100
72
 
101
- module.exports = app;
73
+ ```text
74
+ ✔ Creating project structure...
75
+ ✔ Creating folders...
76
+ ✔ Creating files...
77
+ ✔ Project created successfully!
102
78
  ```
103
79
 
104
80
  ---
105
81
 
106
- ## Getting Started
82
+ ## Why Backend Scaffolder?
107
83
 
108
- After generating the project:
84
+ When starting a new backend project, developers often spend time creating the same folder structure repeatedly.
109
85
 
110
- ```bash
111
- cd my-api
112
- npm install
113
- npm run dev
114
- ```
86
+ Backend Scaffolder automates this process so you can focus on building features instead of setting up files.
87
+
88
+ ---
115
89
 
116
- Server starts on:
90
+ ## Roadmap
117
91
 
118
- ```text
119
- http://localhost:5000
120
- ```
92
+ - [ ] Express.js template
93
+ - [ ] TypeScript template
94
+ - [ ] MongoDB configuration
95
+ - [ ] JWT Authentication starter
96
+ - [ ] Swagger integration
97
+ - [ ] REST API starter template
98
+ - [ ] MVC architecture presets
121
99
 
122
100
  ---
123
101
 
124
- ## Example
102
+ ## Contributing
103
+
104
+ Contributions are welcome.
105
+
106
+ 1. Fork the repository
107
+ 2. Create your feature branch
125
108
 
126
109
  ```bash
127
- create-backend-layout ecommerce-api
110
+ git checkout -b feature/amazing-feature
128
111
  ```
129
112
 
130
- Output:
113
+ 3. Commit your changes
131
114
 
132
115
  ```bash
133
- 🚀 Scaffolding backend structure in:
134
- ecommerce-api
116
+ git commit -m "Add amazing feature"
117
+ ```
135
118
 
136
- Structure successfully created!
119
+ 4. Push to the branch
137
120
 
138
- Next steps:
139
- cd ecommerce-api
140
- npm install
141
- npm run dev
121
+ ```bash
122
+ git push origin feature/amazing-feature
142
123
  ```
143
124
 
125
+ 5. Open a Pull Request
126
+
144
127
  ---
145
128
 
146
- ## Requirements
129
+ ## Issues
130
+
131
+ Found a bug or have a feature request?
147
132
 
148
- * Node.js 18+
149
- * npm
133
+ Open an issue on GitHub.
150
134
 
151
135
  ---
152
136
 
@@ -154,11 +138,17 @@ npm run dev
154
138
 
155
139
  Abdur Rehman
156
140
 
157
- * GitHub: https://github.com/abdurwebdev
158
- * LinkedIn: https://www.linkedin.com/in/abdur-rehman-45178a322/
141
+ LinkedIn: https://www.linkedin.com/in/abdur-rehman-45178a322
142
+
143
+ GitHub: https://github.com/abdurwebdev
159
144
 
160
145
  ---
161
146
 
162
147
  ## License
163
148
 
164
- ISC
149
+ MIT License
150
+
151
+ Copyright (c) 2026 Abdur Rehman
152
+
153
+ Permission is hereby granted, free of charge, to any person obtaining a copy
154
+ of this software and associated documentation files.
package/package.json CHANGED
@@ -1,14 +1,34 @@
1
1
  {
2
2
  "name": "backend-scaffolder",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
+ "description": "CLI tool to generate scalable Node.js backend folder structures instantly.",
4
5
  "main": "index.js",
5
- "scripts": {
6
- "test": "echo \"Error: no test specified\" && exit 1"
7
- },"bin": {
6
+ "bin": {
8
7
  "create-backend-layout": "./index.js"
9
8
  },
10
- "keywords": [],
11
- "author": "",
12
- "license": "ISC",
13
- "description": ""
9
+ "keywords": [
10
+ "backend",
11
+ "scaffolder",
12
+ "nodejs",
13
+ "express",
14
+ "cli",
15
+ "generator",
16
+ "boilerplate",
17
+ "backend-generator",
18
+ "mvc",
19
+ "project-structure"
20
+ ],
21
+ "author": "Abdur Rehman",
22
+ "license": "MIT",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/abdurwebdev/backend-scaffolder.git"
26
+ },
27
+ "bugs": {
28
+ "url": "https://github.com/abdurwebdev/backend-scaffolder/issues"
29
+ },
30
+ "homepage": "https://github.com/abdurwebdev/backend-scaffolder#readme",
31
+ "engines": {
32
+ "node": ">=16.0.0"
33
+ }
14
34
  }