june_usecase_template
UseCase Template in June Architecture.
Installation
- If the juneflow project doesn't exist, please create it by following this guide.
- open terminal in the juneflow project root directory, enter the following command.
june add june_usecase_template
Usage
- Create two subfolders in series under the app's domain/usecase folder, then copy the use_case.dart file from the following location (
lib/blueprint/usecase/new/domain/usecase/_/_/use_case.dart
) and paste it into these newly created folders. - In the file, replace "New" with the name of the use case.
- Replace "Some" with the name of the repository you want to link to.
- If there are multiple repositories that need to be linked, add each one and then link them accordingly.
- Uncomment all sections throughout the document.
- Combine the functions imported from the repository to create the use case function.
- Call the use case where needed:
NewUseCase.usecase.run()
Libraries
- blueprint/usecase/_new/domain/usecase/_/_/use_case
- main
- util/_/initial_app/build_app_widget/build_material_app/_
- util/_/initial_app/build_app_widget/build_material_app/june_usecase_template/_
- util/_/initial_app/build_app_widget/build_my_app/_
- util/_/initial_app/build_app_widget/build_my_app/june_usecase_template/_
- util/_/initial_app/build_app_widget/build_run_app/_
- util/_/initial_app/build_app_widget/build_run_app/june_usecase_template/_
- util/_/initial_app/ready_functions/after_material_app/_
- util/_/initial_app/ready_functions/after_material_app/june_usecase_template/_
- util/_/initial_app/ready_functions/before_material_app/_
- util/_/initial_app/ready_functions/before_material_app/june_usecase_template/_
- util/_/initial_app/ready_functions/before_run_app/_
- util/_/initial_app/ready_functions/before_run_app/june_usecase_template/_
- util/_/initial_app/ready_functions/before_run_app/widgets_binding/_
- util/_/module_functions/june_usecase_template/_
- util/_/shared_params/_/go_router
- util/_/shared_params/_/material_app
- util/_/shared_params/_/start_app_params
- util/_/shared_params/_/widgets_binding
- util/_/shared_params/june_usecase_template/_
- util/config/_/global_imports
- util/config/_/init_view
- util/config/_/router/_/_
- util/config/june_usecase_template/_
- util/usage/june_usecase_template/usage
- util/usage/june_usecase_template/usage_view