express-launcher
v1.0.3
Published
A Simple CLI to generate Express.js projects
Maintainers
Readme
Express Launcher
A Simple CLI tool to create Express.js applications with modern best practices, TypeScript support, and various integrations.
Features
- Language Support: JavaScript or TypeScript
- Database Integration: MongoDB, PostgreSQL, MySQL (with Prisma)
- Middleware: CORS, Helmet, Morgan, Rate Limiter
- Error Handling: Advanced global error handler,
AppErrorclass, andasyncHandlerwrapper - Linting: ESLint configuration (Flat Config, TypeScript support)
- Structure: MVC pattern or Modular structure (routes, controllers, utils, middlewares)
Quick Start
You can use npx to run the generator directly without installation:
npx express-launcher [project-name]Installation (Optional)
If you prefer to install it globally:
npm install -g express-launcherUsage
# Generated a new project named 'my-app'
npx express-launcher my-app
# Run interactively
npx express-launcherFollow the prompts to configure your project.
Generated Project Structure
my-app/
├── src/
│ ├── controllers/
│ ├── lib/ # Database connection / Prisma client
│ ├── middlewares/ # Error handling, rate limiting
│ ├── routes/
│ ├── utils/ # AppError, asyncHandler
│ └── server.js (or index.ts)
├── prisma/ # If SQL DB selected
├── .env
├── package.json
└── README.mdAuthor
Narasimha Vaddala
- GitHub: @NarasimhaVaddala
- LinkedIn: Narasimha Vaddala
License
MIT © Narasimha
