Introduction
Start using ModularBr to implement modular architecture in your projects.
Inspirations behind ModularBr
ModularBr, like Flutter Modular, was inspired by the NgModule feature of Angular, which is a way to organize and modularize an Angular application. Flutter Modular, in turn, adapted this concept to the Flutter environment, creating a state and route management framework that has become very popular in the Flutter community. ModularBr was created as an alternative for the Delphi environment, bringing many of the benefits and concepts of Flutter Modular to the Delphi world. With ModularBr, developers can create scalable and well-organized applications, making code maintenance and evolution easier. InjectorBr is one of the main tools of ModularBr, allowing for simple and efficient dependency injection, as well as enabling the creation of modules that can be easily reused in other parts of the application.
Start a project
To start using ModularBr, the first step is to initialize the application with the command ModularApp.Init(TAppModule.Create)
, where AppModule
is the main module of your application and serves as the entry point.
An example structure of the AppModule can be seen below:
This is just a basic example, but the structure can be adapted according to the application's needs.
Last updated