june_usecase_template 1.0.0 june_usecase_template: ^1.0.0 copied to clipboard
UseCase Template in June Architecture.
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()