create-node-pro
v1.0.0
Published
Generate production-ready Node.js backends in seconds
Downloads
10
Maintainers
Readme
create-node-pro
⚡ Generate production-ready Node.js backends in seconds.
npx create-node-pro myAppFeatures
- 📁 Clean MVC folder structure
- 🔐 JWT Authentication (register, login, protected routes)
- 🗄️ Database support — MongoDB, PostgreSQL, MySQL
- 📬 Email service (Nodemailer with templates)
- 📁 File uploads (Multer + Cloudinary)
- 💳 Payment integration (Razorpay / Stripe)
- 🛡️ Security (Helmet + Rate Limiter)
- 📊 Logger (Winston)
- 🧪 Test setup (Jest + Supertest)
- 🔷 TypeScript support
Usage
npx create-node-pro myApp
# or
npx create-node-proFollow the interactive prompts:
? Language: JavaScript
? Database: MongoDB
? Select features: JWT Auth, Security
? Package manager: npmThen:
cd myApp
npm run devServer starts at http://localhost:5000
Generated Structure
myApp/
├── src/
│ ├── controllers/
│ │ └── auth.controller.js
│ ├── routes/
│ │ ├── auth.routes.js
│ │ └── health.routes.js
│ ├── models/
│ │ └── user.model.js
│ ├── middleware/
│ │ └── auth.middleware.js
│ ├── utils/
│ │ └── errors.js
│ ├── config/
│ │ └── db.js
│ └── app.js
├── .env
├── .env.example
└── package.jsonAPI Endpoints
| Method | Route | Description | Auth | |--------|-------------------|---------------------|------| | GET | /api/health | Server health check | No | | POST | /api/auth/register| Register user | No | | POST | /api/auth/login | Login user | No | | GET | /api/auth/me | Get current user | Yes | | POST | /api/upload/single| Upload a file | Yes |
License
MIT
