create-shivam-backend
Version:
A CLI tool to quickly scaffold an Express + MongoDB backend project.
83 lines (59 loc) ⢠1.53 kB
Markdown
# š create-shivam-backend
A simple CLI tool to quickly scaffold a ready-to-use **Express + MongoDB backend project** with basic folder structure and environment setup.
## š¦ Installation
You can use **npx** (recommended) ā no global install needed:
```bash
npx create-shivam-backend my-app
```
Or install globally:
```bash
npm install -g create-shivam-backend
create-shivam-backend my-app
```
## š§± What It Does
Automatically creates a backend project with:
```
my-app/
⣠š config/
ā ā db.js
⣠š controllers/
⣠š models/
⣠š routes/
⣠š utils/
⣠š .env
⣠š app.js
⣠š index.js
ā š package.json
```
ā
Sets up a basic Express server
ā
Adds MongoDB connection (`mongoose`)
ā
Generates `.env` with PORT & MONGO_URI
ā
Adds start and dev scripts using nodemon
## āļø Usage
After creating your project:
```bash
cd my-app
npm install
npm run dev
```
Then open: [http://localhost:5000](http://localhost:5000)
## š§° Tech Stack
- Node.js
- Express
- Mongoose
- Dotenv
- Nodemon
## š§āš» Example Output
```
š Created project folder: my-app
ā
Project files created successfully!
Next steps:
cd my-app
npm install
npm run dev
```
## š License
MIT License Ā© 2025 Shivam Mishra
## ā Support
If you like this package, give it a **star** on npm or GitHub!
It helps me stay motivated to build more developer tools š