Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abdalftahsalem/thunder-cli

This project is a Flutter application scaffolded with GetX and follows the MVC (Model-View-Controller) architecture.
https://github.com/abdalftahsalem/thunder-cli

flutter

Last synced: about 2 months ago
JSON representation

This project is a Flutter application scaffolded with GetX and follows the MVC (Model-View-Controller) architecture.

Awesome Lists containing this project

README

        

# ⚡ Flutter GetX MVC Project

This project is a Flutter application scaffolded with GetX ( BloC working in it ... ) and follows the MVC (
Model-View-Controller) architecture.

## 💻 How to Use Thunder CLI

To streamline the process of creating project structures and modules, we've developed a command-line tool called Thunder
CLI. It simplifies the setup of your Flutter project. Below are the available commands and their usage:

## 📌 Installation

To install Thunder CLI, run the following command:

```bash
dart pub global activate thunder_cli
```

## 🧑🏻‍💻 Commands

## Usage

To create and initialize a new Flutter project [ Folders and packages ] with Thunder CLI, use the following command:

```shell
thunder --init
```

This command will set up the following components for your project:

- Main File
- Components for Application (e.g., animated widgets, snackbar)
- Themes (Dark and Light)
- Constants (e.g., colors, strings)
- Routes and App Pages
- Local storage
- Remote storage
- Awesome Notification
- FCM
- Dio Base Client
- Translations (e.g., localization service, strings)
- Publish app to GitHub
- Open the folder in VS code
- Setup GitHub action
- Setup flavor

To create a new Feature , use the following command:

```shell
thunder --feature
```

This command will set up the following components for your module:

- Binding
- Controller
- View
- Add view in routes and app pages

To create a new model via url (e.g., https://jsonplaceholder.typicode.com/posts), use the following command:

```shell
thunder --model
```

This command will set up the following components for your model:

- Model
- Named constructor
- FromJson
- ToJson

```shell
thunder --c_api
```

This command will auto convert api collection to code :

- Read all variables from collection
- Extract all request
- Add all api routes to api_contents.dart
- Build body model for all requests
- Build response model for all requests
- Build repos for all requests
- Build basic controller for all requests

To show help, use the following command:

```shell
thunder --h
```

## 🏛️ Project Structure

The project structure URL :

```
https://github.com/abdAlftahSalem/flutter_getx_template.git
```

[Thunder CLI on pub.dev](https://pub.dev/packages/thunder_cli)

## 📨 Contact with me

[Whats App](https://wa.me/00972598045064) ||
[Telegram](https://t.me/Abd_Alftah_Al_shanti)

## Contributing

Feel free to contribute to this project by opening issues, suggesting new features, or submitting pull requests.

## License

This project is licensed under the MIT License.

---