dart_clean_generator

Creator: coderz1093

Last updated:

0 purchases

dart_clean_generator Image
dart_clean_generator Images

Languages

Categories

Add to Cart

Description:

dart clean generator

Dart Clean Arch Generator #
A Dart package to generate Clean Architecture boilerplate with different design pattern for Bloc state management such as clean arch and mvc
Table of Contents #

[Installation][#installation]
[Usage][#usage]
[Folder Structure][#folder-structure]
[License][#license]

Installation #

Add 'dart_clean_generator'
as a dev dependency in your 'pubspec.yaml';

dev_dependencies:
dart_clean_generator: 1.0.5
copied to clipboard

Run 'dart pub get' to fetch the package

To generate the boilerplate code for your project, run the following command:
Activate it with
dart run dart_clean_generator
copied to clipboard
This command generates a clean architecture folder structure for Bloc based applications
Usage #
1 Clean Architecture #
To generate the boilerplate code for your project, run the following command:
dart run dart_clean_generator --clean build
copied to clipboard
This command will create a new folder structure and files for the Clean architecture
Folder Structure #
The generated folder structure is as follows:
lib/

├── app/
│ ├── config/
│ ├── core/
│ ├── utils/
| └── global_functions.dart
| └── failure.dart
| └── validator.dart



├── data/
│ ├── models/
│ ├── repositories/
│ ├── data_sources/



├── domain/
│ ├── entities/
│ ├── usecases/
│ │__ repositories/



└── presentation/
├── bloc/
|── controllers/
├── pages/
└── widgets/


└── bloc_observers.dart
└── generator.dart

copied to clipboard
2 MVC (Model View Controller) #
To generate the boilerplate code for your project, run the following command:
dart run dart_clean_generator --mvc build
copied to clipboard
This command will create a new folder structure and files for the Clean architecture
Folder Structure #
The generated folder structure is as follows:
lib
└── core
└── locator
└── services
└── constants
└── utils
└── global_functions.dart

└── data
└── models
└── repositories
└── data_sources

└── bloc
└── controllers
└── views

└── bloc_observers.dart
└── generator.dart

copied to clipboard
License #
This project is licensed under the MIT License.
Remember to adjust the version number and any other information as needed. Save this README as README.md in the root directory of your package. This will help users understand how to use your package and provide a clear overview of its features and usage.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.