create-exbackend-app
v3.0.0
Published
A beautiful Express.js CLI scaffold Express backend apps with Prisma or Mongoose
Maintainers
Readme
🚀 create-exbackend-app
A powerful Express.js backend boilerplate generator CLI with flexible configuration options, TypeScript support, MongoDB (with Mongoose/Prisma), auto-structured folders, and more.
✨ Features
- ⚡ Express.js scaffolding with clean architecture
- ✅ Supports both JavaScript and TypeScript
- ✅ Choose between Prisma or Mongoose
- ✅ Automatically installs dependencies
- ✅ Beautified CLI prompts and output
- ✅ Prettier + ESLint ready
- ✅ Fully customizable template structure
- 📂 Folder structure with:
src/configsrc/controllerssrc/routessrc/modelssrc/servicessrc/middlewares
- 📊 Logging with
morgan - 🛡️ CORS and Cookie-Parser setup
- ✅ Installs latest versions of all packages
🧭 Usage
Using npx (recommended)
npx create-exbackend-appOr install globally
npm install -g create-exbackend-app
create-exbackend-app📋 CLI Prompts
When you run the CLI, it will ask:
Enter your project name:
- Type a name (e.g.,
my-api) - Or just press enter to use default:
my-app
- Type a name (e.g.,
Which language do you want to use?
Express + TS(TypeScript)Express + JS(JavaScript)
Which ORM/ODM setup do you want?
PrismaMongoose
Your choices will generate a fully working backend boilerplate in seconds 🚀
📁 Project Structure
my-app/
├── src/
│ ├── config/
│ ├── controllers/
│ ├── middlewares/
│ ├── models/
│ ├── routes/
│ ├── services/
│ └── app (file)
├── .env
├── package.json
├── .prettierrc
├── .gitignore
├── .eslintrc.json
├── tsconfig.json (if TypeScript)
├── index (file)
└── README.md📦 Scripts
# Run in development mode
npm run dev
# Run Start
npm run start🧰 Requirements
- Node.js >= 18.x
- npm >= 9.x
🤝 Contributing
Have a suggestion or found a bug? Open an issue or PR — all contributions are welcome!
✍️ Author
Made with 💻 and ☕ by Mashruf Ahmed
