chopin-cli-0.3.5 is not a library.
๐น Chopin CLI
Scaffolding and code generation tool for the Chopin web framework.
Generate ChopinModules following MVSR pattern (Model-View-Service-Router), manage migrations, and bootstrap new projects with sensible defaults.
Installation
Quick Start
Create a new Chopin project with modular architecture:
Commands
new โ Create a new project
Creates a new Chopin project with:
- Modular architecture using ChopinModule trait
- MVSR pattern (Model-View-Service-Router)
- Configured
Cargo.tomlwith dependencies - Example auth module (signup, login)
- Development SQLite database
- OpenAPI documentation setup
Templates:
basicโ Minimal setup (default)apiโ Full CRUD API with posts module
generate module โ Scaffold a new module
Generates MVSR structure:
src/modules/blog/
โโโ mod.rs # ChopinModule implementation
โโโ services.rs # Business logic (unit-testable)
โโโ handlers.rs # HTTP handlers
โโโ models.rs # SeaORM entities
โโโ migrations.rs # Database migrations
generate โ Generate specific components
db โ Database management
Features
- โก Zero-configuration project setup with MVSR pattern
- ๐ฆ ChopinModule scaffolding
- ๐ Built-in authentication scaffolding
- ๐๏ธ Database migration helpers
- ๐ OpenAPI documentation
- ๐งช Testing utilities included
Documentation
For more information, see the main repository:
- Modular Architecture Guide โ ChopinModule trait, MVSR pattern
- Debugging & Logging โ Enable request logging
- Example Projects โ basic-api shows MVSR pattern
- API Reference
License
WTFPL (Do What The Fuck You Want To Public License)