backly
v1.2.1
Published
Interactive cli backend starter generator for nodejs aplications
Maintainers
Readme
Backly 🚀
Interactive cli backend starter for Node.js applications.
what is backly?
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.
Features
🎯 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
Quick start
npx backlyFor global users
npm 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
Templates
🔹 core
Minimal Express server with basic routing. Perfect for learning or simple APIs.
- Express.js
- CORS
- Environment variables
- Basic route structure
🔹 base
Production-ready starter with authentication and database.
- JWT authentication
- MongoDB with Mongoose
- Password hashing (bcrypt)
- MVC architecture
- Error handling middleware
🔹 prime
Advanced architecture for scalable applications.
- Everything in
base+ - Role-Based Access Control (RBAC)
- Service layer pattern
- Repository pattern
- Custom error classes
- Utility functions
🔹 commerce
E-commerce backend foundation.
- Product, Cart, Order, Category models
- Inventory management
- Filtering utilities
- Payment handler placeholder
🔹 content
Blog/CMS starter kit.
- Post, Comment, Category models
- CRUD operations
- Slug generation
- Pagination utilities
🔹 social
Social media backend.
- User profiles
- Posts, Likes, Follows
- Basic feed system
- Modular routing
CLI Flags
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-apiAfter Generation
cd your-project-name
npm run devRequirements
- Node.js >= 14.0.0
- npm or yarn
License
MIT
Author
Sahil Mund
