Ignitr CLI is a command line interface (CLI) tool that helps you get started with Ignitr projects, a powerful and flexible Flutter project generator. With Ignitr CLI, you can easily create new Flutter projects, generate modules.
dart pub global activate ignitr_cliAbove command will install the ignitr_cli globally in your system and expose ignitr executable to run commands, now you can use the built in Ignitr commands to get started with your project's development.
NOTE: Sometimes ignitr command doesn't work after activating it globally specially when using Git Bash for windows, To solve this please use command as ignitr.bat <commands>, Alternatively you can add alias to your .bashrc file. To do so please run the following command in your (Git Bash) terminal: echo alias ignitr=\"ignitr.bat\" >> ~/.bashrc, If you use .bash_profile replace .bashrc with .bash_profile
Ignitr CLI provides a set of commands to help you generate modules and files for your Flutter projects. Here are some of the most commonly used commands:
ignitr create <project_name>: This command will create a new Ignitr project with the specified name.ignitr make:module <module_name>: To generate a new module you can use this command, please make sure to use thesingularname of the module.ignitr make:page <page_name> --on=<module_name>: This command will generate a new page and associated controller inside the specified module.
ignitr create <project_name>This will generate all the files required for a Ignitr project.
After generating the project, you can generate a new module by running the following command in your project's root directory:
NOTE: Please make sure to use the module name as singular name
ignitr make:module blogNOTE: Make sure to use the module names as singular name
This will generate all the files required for a Module
📂 blog
├── 📂 controllers
│ └── 📄 blog_controller.dart
├── 📂 routes
│ ├── 📄 blog_router.dart
├── 📂 networds
│ ├── 📄 api_blog_client.dart
│ └── 📄 blog_client.dart
├── 📂 views
│ └── 📄 blog_page.dart
└── 📄 blog_module.dartignitr make:page comment --on=blogThis will generate the new view/page (comment_page.dart) along with it's controller (comment_controller.dart) file inside the blog Module.
📂 blog
├── 📂 controllers
│ ├── 📄 blog_controller.dart
│ └── 📄 comment_controller.dart
├── 📂 views
│ └── 📄 blog_page.dart
│ └── 📄 comment_page.dart- Stack Selection: You can select the stack you want to use, such as GetX, Bloc or any other stack.
- Tailwind: The project will include Tailwind CSS inspired styling library for styling, providing a modern, responsive and unique look and feel to your application.
Please refer to the Ignitr Documentation for more detailed information and examples on how to use Ignitr.