UNPKG

create-shivam-backend

Version:

A CLI tool to quickly scaffold an Express + MongoDB backend project.

83 lines (59 loc) • 1.53 kB
# šŸš€ 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 šŸš€