47d30d96ebca33d0dec63f37f4e4caa64ecfd22b
♻️ refactor(account, order, plan, profile, support, email): restructure application modules and enhance error handling
♻️ refactor(account, order, plan, profile, support, email): restructure application modules and enhance error handling
♻️ refactor(account, order, plan, profile, support, email): restructure application modules and enhance error handling
⚡ Express Server CLI
🚀 Overview
A powerful Express + TypeScript CLI that instantly generates scalable backend modules with Mongoose / Prisma, Zod validation, and Swagger documentation.
This tool helps developers quickly scaffold clean, modular Express APIs with minimal setup.
✨ Features
- ⚡ Generate complete
Express+TypeScriptmodules - 🧩 Built-in
Mongoose/Prismasupport - 📘 Adds Swagger documentation automatically
- 📘 Automatic
Swaggerdocumentation - 🔐
Zodvalidation ready - 🏗️
Modularclean architecture - 🚀 One command project setup
- 🔄 Add modules anytime
- 📦 Zero boilerplate setup
📦 Quick Start
Run directly using npx (recommended):
npx exp-node-server -c my-api
This will:
- Create an Express starter project
- Install dependencies
- Prepare the project for development
🧩 Generate a Module
Inside your project run:
npx express-server-cli -g <module-name>
Example: npx express-server-cli -g order
Output:
✔ order.interface.ts created
✔ order.schema.ts created
✔ order.validation.ts created
✔ order.route.ts created
✔ order.controller.ts created
✔ order.service.ts created
✔ order.swagger.ts created
🔗 Route registered in routes.ts
📘 Swagger docs registered
📁 Generated Module Structure
Each module follows a clean structure:
src/app/modules/<module-name>/
├── <module>.interface.ts
├── <module>.schema.ts
├── <module>.validation.ts
├── <module>.route.ts
├── <module>.controller.ts
├── <module>.service.ts
└── <module>.swagger.ts
⚙️ Run the Project
npm run dev
Swagger docs available at:
http://localhost:5000/docs
🧠 Tech Stack
- Express.js — Backend framework
- TypeScript — Strongly typed JavaScript
- Mongoose — MongoDB ODM
- Prisma — PostgreSQL ORM
- Zod — Runtime schema validation
- JWT — Authentication
- Swagger — API documentation
👨💻 Author
Abumahid
GitHub https://github.com/dev-abumahid
npm https://www.npmjs.com/~dev_abumahid
Portfolio https://abumahid.me
LinkedIn https://linkedin.com/in/md-abu-mahid-islam
⭐ Support
If you find this project helpful, consider giving it a ⭐ on GitHub.
It helps the project grow and reach more developers.
Description
Languages
TypeScript
98%
Dockerfile
1.1%
PLpgSQL
0.9%