Interactive cli backend starter for Node.js applications.
Backly is a cli tool that helps you to create a backend project, file structure and required dependencies with a simple command depending on your template.
🎯 6 Professional Templates - From minimal to advanced architectures
📦 JavaScript & TypeScript - Full support for both languages
⚡ Zero Configuration - Works out of the box
🛠️ Flexible - Start simple, scale as needed
npx backlynpm i -g backly
## initialize your project
backly initThat's it! The CLI will guide you through:
- Choosing your language (JavaScript or TypeScript)
- Selecting a template
- Naming your project
- Automatic dependency installation
Minimal Express server with basic routing. Perfect for learning or simple APIs.
- Express.js
- CORS
- Environment variables
- Basic route structure
Production-ready starter with authentication and database.
- JWT authentication
- MongoDB with Mongoose
- Password hashing (bcrypt)
- MVC architecture
- Error handling middleware
Advanced architecture for scalable applications.
- Everything in
base+ - Role-Based Access Control (RBAC)
- Service layer pattern
- Repository pattern
- Custom error classes
- Utility functions
E-commerce backend foundation.
- Product, Cart, Order, Category models
- Inventory management
- Filtering utilities
- Payment handler placeholder
Blog/CMS starter kit.
- Post, Comment, Category models
- CRUD operations
- Slug generation
- Pagination utilities
Social media backend.
- User profiles
- Posts, Likes, Follows
- Basic feed system
- Modular routing
For advanced users, skip prompts with flags:
# Use TypeScript
npx backly --ts
# Use JavaScript
npx backly --js
# Specify template
npx backly --template base
# Set project name
npx backly --name my-awesome-api
# Skip dependency installation
npx backly --no-install
# Combine flags
npx backly --ts --template prime --name my-apicd your-project-name
npm run dev- Node.js >= 14.0.0
- npm or yarn
MIT
Sahil Mund