getx_clean_arch 0.1.5
getx_clean_arch: ^0.1.5 copied to clipboard
A CLI tool for scaffolding and managing Flutter projects with GetX and Clean Architecture.
example/example.md
GetX Clean Architecture CLI Example #
This folder contains a sample project generated by the getxcli tool. It demonstrates the Feature-First Clean Architecture structure.
How it works #
The getxcli allows you to initialize a project with a single command:
# Initialize a new project
getxcli init my_app
Core Structure #
The CLI sets up a modular core with shared services and theme configuration:
lib/core/services/- App-wide services (Firebase, Storage).lib/core/theme/- Centralized styling (MColors, MTheme).lib/dependency_injection.dart- Service initialization.
Feature Scaffolding #
You can generate full features with bindings, controllers, and pages:
# Create a new feature
getxcli create:feature auth
Each feature follows a clean layer separation:
auth_binding.dart- Dependency mapping.auth_controller.dart- Business logic using GetX.auth_page.dart- UI Layer.
Running the Example #
This example project itself follows the structure described above. You can explore the generated files in the lib/ directory.