backend-kit-cli
v2.1.1
Published
Backend KIT CLI - A tool to quickly generate boilerplate code and reduce development time
Maintainers
Readme
Backend Kit CLI
🚀 A powerful CLI tool to quickly generate backend project boilerplates and reduce development time.
Features
- 📁 Generates a well-structured Express.js project
- 🔧 Multiple database support (MongoDB, more coming soon)
- 🛠️ Multiple ORM support (Mongoose, more coming soon)
- 💻 Language options (JavaScript, TypeScript coming soon)
- ⚡ Basic API routes and controllers
- 🔐 CORS configuration
- 💪 Error handling middleware
- 📝 Environment variables setup
Installation
npm install -g backend-kit-cliUsage
Run the CLI tool:
init-backendFollow the interactive prompts to:
- Enter your project name
- Choose programming language (JavaScript/TypeScript)
- Choose whether to include sample code files
- Select your database (MongoDB/None)
- Select your ORM (Mongoose/Prisma/etc.)
Project Structure
your-project/
├── src/
│ ├── config/
│ │ └── db.config.js
│ ├── controllers/
│ │ └── user.controller.js
│ ├── middleware/
│ │ └── error.middleware.js
│ ├── models/
│ │ └── user.model.js
│ ├── routes/
│ │ ├── index.js
│ │ └── user.routes.js
│ ├── services/
│ ├── utils/
│ │ └── index.js
│ ├── app.js
│ └── index.js
└── .envCurrent Features
- Express.js setup with best practices
- MongoDB integration with Mongoose
- Basic user routes and controller setup
- Error handling middleware
- CORS configuration
- Environment variables setup
- Utility functions
Coming Soon
- TypeScript support
- PostgreSQL database support
- Additional ORM options:
- Prisma
- Sequelize
- Drizzle
- Authentication templates
- Testing setup
- Docker configuration
