# ๐ง RS (Rahul Structure) - Flutter CLI Project Scaffolding Tool
**RS (Rahul Structure)** is a simple yet powerful Dart-based command-line tool that helps you scaffold a Flutter project architecture instantly. Whether you prefer Clean Architecture, MVVM, or a custom folder structure, `rs` will set up everything for you in seconds!
---
## ๐ Table of Contents
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Architecture Options](#architecture-options)
- [Example Project Structure](#example-project-structure)
- [Project Directory Explained](#project-directory-explained)
- [Contributing](#contributing)
- [License](#license)
- [Author](#author)
---
## โจ Features
- ๐ Instantly generate project structure in Flutter projects
- ๐ Supports multiple architecture patterns:
- Clean Architecture
- MVVM
- Rahul's Custom Architecture
- ๐ง Beginner-friendly CLI interface
- ๐งฐ Written in Dart using the `args` package
- โก Super fast and easily extendable
---
## ๐ฆ Installation
### 1๏ธโฃ Clone the Repo
```bash
git clone https://github.com/berarahul/rs-cli.git
cd rs
2๏ธโฃ Activate the Tool Globally
dart pub global activate --source path .
โน๏ธ Make sure
$HOME/.pub-cache/binis in your PATH.
๐ Usage
Create a Flutter project first:
flutter create my_app
cd my_app
rs
You'll see a prompt:
Are you creating your project structure?
1. Clean Architecture
2. MVVM Architecture
3. Rahul Architecture
Enter your choice (1/2/3):
After you choose, it will auto-generate the structure and print:
โ
Successfully generated Clean Architecture project structure.
๐ Architecture Options
You can scaffold the following:
1. Clean Architecture
- Organizes code in layers:
data,domain,presentation - Suitable for enterprise-level apps
2. MVVM
- Separates
Model,View,ViewModel - Great for small to medium apps with UI logic
3. Rahul Architecture
- Comming soon
- Comming soon
๐ Example Project Structure
Hereโs a generated folder layout for Clean Architecture:
lib/
โโโ core/
โ โโโ utils/
โโโ features/
โ โโโ auth/
โ โโโ data/
โ โโโ domain/
โ โโโ presentation/
โโโ main.dart
๐ Project Directory Explained
core/: App-wide utilities, constants, error handlingfeatures/: Divides your app by features/modulesdata/: Handles API, local DB, and data sourcesdomain/: Business logic, use cases, entitiespresentation/: UI screens, widgets, controllers
๐ค Contributing
Want to contribute? Follow these steps:
git clone https://github.com/berarahul/rs-cli.git
cd rs
dart run bin/rs.dart
Open an issue or submit a pull request โ all contributions are welcome!
๐ License
This project is licensed under the MIT License.
MIT License
Copyright (c) 2025 Rahul
Permission is hereby granted, free of charge, to any person obtaining a copy
...
๐จโ๐ป Author
Made with โค๏ธ by Rahul Bera
- ๐ง Email: rb6764385@gmail.com
- ๐งฐ GitHub: berarahul
๐ฎ Coming Soon
- โ๏ธ Cloud templates
- ๐ฆ Flutter package integrations
- ๐งช Unit test starter