A CLI tool to quickly generate Express.js project templates with a clean structure, supporting both JavaScript and TypeScript. Choose between minimal, RESTful API, or realtime (Socket.io) templates.
- Generate Express.js project templates in JavaScript or TypeScript
- Select template type: minimal, RESTful API, or realtime (Socket.io)
- Predefined folder structure: configs, controllers, events, middlewares, models, routes, services, utils, views
- Ready-to-use starter code
You can use this CLI directly with npx (no global installation required).
Below are two ways to run the command:
- Without options (defaults):
npx create-express-simple <project-name>Example:
npx create-express-simple my-app- With options (specify type and template):
# General syntax
npx create-express-simple <project-name> --type <js|ts> --template <minimal|rest|realtime>Example:
# Create a RESTful API project with TypeScript
npx create-express-simple my-app --type ts --template restAfter generation, change into the project directory and install dependencies:
cd my-app
npm install- minimal: Basic Express server setup
- rest: RESTful API structure with controllers, models, routes
- realtime: Socket.io integration for realtime features
configs/
controllers/
events/
middlewares/
models/
routes/
services/
utils/
views/
MIT