mvctypenode
v1.1.4
Published
Project Generator CLI by Er Ravi
Maintainers
Keywords
Readme
🚀 MVCTYPENODE CLI — Project Generator CLI by Er Ravi
⚡ Powerful Node.js Backend Project Generator CLI
Generate scalable backend applications instantly with Express, TypeScript, MongoDB, Authentication, MVC architecture, middleware, and reusable boilerplates.
📌 Introduction
MVCTYPENODE CLI is a modern Node.js CLI tool that helps developers generate production-ready backend projects in seconds.
Instead of manually creating folders, installing packages, writing boilerplate code, and configuring TypeScript — MVCTYPENODE CLI automates everything.
Perfect for:
- 🚀 Backend Developers
- ⚡ MERN Stack Developers
- 🛠️ API Development
- 📦 Rapid Prototyping
- 🏢 Startup Projects
- 🎯 Learning Backend Architecture
✨ Features
⚡ Project Generation
- Express.js Setup
- TypeScript Configuration
- MVC Folder Structure
- Environment Variables
- Clean Architecture
🔐 Authentication Module
Generate:
- Controller
- Model
- Routes
- Middleware
📦 Automatic Installation
Automatically installs:
- express
- mongoose
- dotenv
- cors
- nodemon
- ts-node
- typescript
🎨 Beautiful CLI
Built using:
- Chalk
- Inquirer
🛠️ Developer Friendly
- Reusable templates
- Scalable structure
- Clean code generation
- Auto server start
- Easy customization
🖼️ Preview
CLI Startup
$ mvctypenode create my-api
$ auto steupInteractive Questions
? Enter Project Name: my-api
? Install Dependencies? Yes
? Start Development Server? YesSuccess Output
✔ Project Created Successfully
✔ Dependencies Installed
✔ MongoDB Configured
✔ Server Running on PORT 4000📂 Generated Project Structure
my-api/
│
├── src/
│ │
│ ├── controllers/
│ │ └── auth.controller.ts
│ │
│ ├── models/
│ │ └── auth.model.ts
│ │
│ ├── routes/
│ │ └── auth.route.ts
│ │
│ ├── middleware/
│ │ └── auth.middleware.ts
│ │
│ ├── app.ts
├── .env
├── .gitignore
├── package.json
├── tsconfig.json
└── README.md⚙️ Installation
Install Globally
npm install -g mvctypenode🚀 Commands
Create New Project(auto)
mvctypenode create my-appGenerate Authentication Module
mvctypenode generate authGenerate User Module
mvctypenode generate userStart Development Server(auto run)
npm run dev🔥 Generated Express Boilerplate
main.ts
import express from "express";
import dotenv from "dotenv";
import mongoose from "mongoose";
dotenv.config();
const app = express();
app.use(express.json());
mongoose
.connect(process.env.DB!)
.then(() => console.log("MongoDB Connected"))
.catch(() => console.log("MongoDB Connection Failed"));
app.get("/", (_, res) => {
res.send("Server Running 🚀");
});
const PORT = process.env.PORT || 5000;
app.listen(PORT, () => {
console.log(`Server running on PORT ${PORT}`);
});📄 Example .env
PORT=4000
DB=mongodb://localhost:27017/mydb📦 Installed Dependencies
Production Dependencies(auto install)
npm install express mongoose dotenv corsDevelopment Dependencies(auto install)
npm install -D typescript ts-node nodemon @types/node @types/express🧠 CLI Workflow
graph TD
A[Start CLI] --> B[Ask Project Name]
B --> C[Generate Boilerplate]
C --> D[Install Dependencies]
D --> E[Create Environment Files]
E --> F[Run Development Server]🛠️ Tech Stack
| Technology | Usage | | ---------- | ------------------- | | Node.js | Runtime | | TypeScript | Language | | Express.js | Backend Framework | | MongoDB | Database | | Chalk | CLI Styling | | Inquirer | Interactive Prompts |
📘 Example Usage
Create Project
mvctypenode create ecommerce-apiGenerate Auth Module
mvctypenode generate authGenerated Files:
auth.controller.ts
auth.model.ts
auth.route.ts
auth.middleware.ts🤝 Contributing
Contributions are welcome ❤️
Fork Repository
git clone https://github.com/Rktechpro/mvctypenode-npm.gitInstall Packages(auto install)
npm installRun Development(auto run)
npm run dev🐛 Issues
If you find any bug or want to request a feature:
- Create an Issue
- Submit a Pull Request
📜 License
MIT License
Copyright (c) 2026 Ravi Kumar
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files.
👨💻 Author
Er Ravi
🚀 Full Stack Developer
MERN Stack Developer
Backend Engineer
🌐 Connect With Me
- GitHub
- Portfolio
⭐ Support
If you like this project:
⭐ Star the Repository
🍴 Fork the Project
📢 Share with Developers
💖 Support Open Source