A powerful Express.js backend boilerplate generator CLI with flexible configuration options, TypeScript support, MongoDB (with Mongoose/Prisma), auto-structured folders, and more.
- ⚡ 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/config
src/controllers
src/routes
src/models
src/services
src/middlewares
- 📊 Logging with
morgan
- 🛡️ CORS and Cookie-Parser setup
- ✅ Installs latest versions of all packages
npx create-exbackend-app
npm install -g create-exbackend-app
create-exbackend-app
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?
Prisma
Mongoose
Your choices will generate a fully working backend boilerplate in seconds 🚀
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
# Run in development mode
npm run dev
# Run Start
npm run start
- Node.js >= 18.x
- npm >= 9.x
Have a suggestion or found a bug? Open an issue or PR — all contributions are welcome!
Made with 💻 and ☕ by Mashruf Ahmed