backend-starter-hb
v1.4.1
Published
π Cross-platform backend starter CLI for Express, Next.js, Django & Spring Boot
Maintainers
Readme
π Backend Starter HB
A powerful, cross-platform CLI tool to quickly scaffold backend projects with industry-standard templates for Express, Next.js, Django, and Spring Boot.
β¨ Features
β
Multi-Framework Support - Express, Next.js, Django, Spring Boot (coming soon)
β
Cross-Platform - Works seamlessly on Windows, macOS, and Linux
β
Production-Ready Templates - Industry-standard project structure
β
Zero Configuration - Get started in seconds
β
Smart Validation - Helpful error messages and flag validation
β
Auto Setup - Automatic dependency installation and Git initialization
π― Quick Start
Create a new Express backend project:
npx backend-starter-hb my-backend --express
cd my-backend
npm run devThat's it! Your backend is ready to go. π
π¦ Installation
Option 1: Use with npx (Recommended - No Installation Required)
npx backend-starter-hb <project-name> [--express|--nextjs|--django|--spring]Option 2: Global Installation
npm install -g backend-starter-hb
backend-starter-hb <project-name> [--express|--nextjs|--django|--spring]Option 3: Using the shorter alias
# After global installation, you can also use:
backend-starter <project-name> [--express|--nextjs|--django|--spring]π οΈ Usage
Basic Syntax:
npx backend-starter-hb <project-name> [framework-flag]Examples:
Express Backend (Default)
npx backend-starter-hb my-api --expressNext.js Backend (Coming Soon)
npx backend-starter-hb my-nextjs-app --nextjsDjango Backend (Coming Soon)
npx backend-starter-hb my-django-api --djangoSpring Boot Backend (Coming Soon)
npx backend-starter-hb my-spring-api --springπ¨ Available Templates
| Framework | Status | Flag | Description |
|-----------|--------|------|-------------|
| Express | β
Available | --express | Node.js + Express with MongoDB, JWT auth, validation |
| Next.js | π§ Coming Soon | --nextjs | Next.js API routes with TypeScript |
| Django | π§ Coming Soon | --django | Django REST Framework with PostgreSQL |
| Spring Boot | π§ Coming Soon | --spring | Spring Boot with JPA and MySQL |
π Express Template Features
The Express template includes:
- β Authentication System - JWT-based auth with refresh tokens
- β MongoDB Integration - Mongoose ODM with connection pooling
- β Input Validation - Express-validator middleware
- β Error Handling - Centralized error handler
- β Rate Limiting - Protection against brute-force attacks
- β Logging - Winston + Morgan for comprehensive logging
- β Security - Helmet, CORS, cookie-parser
- β Email Service - Nodemailer integration
- β Environment Config - dotenv configuration
- β ESLint - Code quality and consistency
π₯οΈ Cross-Platform Support
This CLI is fully tested and works on:
- β Windows (PowerShell, CMD, Git Bash)
- β macOS (Terminal, iTerm2)
- β Linux (Bash, Zsh)
Platform-Specific Commands:
The CLI automatically detects your platform and provides the correct commands:
Windows:
cd my-backend
rmdir /s /q .git
npm run devmacOS/Linux:
cd my-backend
rm -rf .git
npm run devπ§ Requirements
- Node.js >= 14.0.0
- npm >= 6.0.0
π Documentation
For detailed documentation, visit: https://backend-starter-hb.netlify.app
π Troubleshooting
Issue: "Invalid flag" error
Solution: Make sure you're using one of the supported flags:
--express | --nextjs | --django | --springIssue: "Template not available" error
Solution: Currently, only --express is available. Other templates are coming soon!
Issue: Windows-specific errors
Solution: This has been fixed in v1.4.0+. Make sure you're using the latest version:
npm install -g backend-starter-hb@latestIssue: Old package name not working
Solution: The package has been renamed from create-express-backend-hb-cli to backend-starter-hb. Use:
npx backend-starter-hb <project-name> --expressπ€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π¨βπ» Author
Himanshu Bhindoriya
Full-Stack Developer
π Learning β’ Building β’ Improving
π Acknowledgments
- Express.js team for the amazing framework
- All contributors and users of this CLI
Made with β€οΈ by Himanshu Bhindoriya
