anshul
v1.2.5
Published
A shortcut to create a backend structure with express.
Maintainers
Readme
anshul
A lightweight CLI scaffolding tool to instantly generate a clean, layered Express.js backend project structure.
🚀 Usage
You can run it without installing globally using bunx or npx:
# Using Bun
bunx anshul <project-name>
# Using NPM
npx anshul <project-name>Options
--no-install: Skip automatic dependency installation (bun install/npm install).-h, --help: Display the help message.
📁 Generated Project Structure
<project-name>/
├── controllers/
│ └── user.controller.js # Request/response logic
├── middlewares/
│ └── errorHandler.js # Global error and 404 handlers
├── routes/
│ └── api.js # Route mappings
├── services/
│ └── user.service.js # Business logic & data handling
├── utilities/
│ └── response.js # API response utility helpers
├── .env # Environment variables (PORT, NODE_ENV)
├── .gitignore # Git ignored files
├── index.js # Server entry point
├── package.json # Dependencies and scripts
└── README.md # Project documentation🛠 Local Development & Testing
To test this CLI locally:
node ./index.js my-test-app