How yusuke-rakus/moneyhook-mobile works
Main Components
• Mobile Client (Flutter App): This is the central part of the project, with all the common code in the lib directory. It is structured into submodules including components, organisms, views, screens, modals, and various helper classes.
• Presentation/UI Layer: Represent the screens (homeScreen, timelineScreen, analysis, login, etc.), widgets, and custom components (e.g., custom buttons, charts, accordions) under lib/src/components, lib/src/organisms, and lib/src/screens. These constitute the front-end user interaction elements.
• Domain/Business Logic Layer: Include the classes under lib/src/class (which model categories, transactions, users, responses, etc.) along with environmental configurations (lib/src/env) and any utilities that handle authentication (e.g., Google sign-in).
• Platform-Specific Layers: Represent the native code in the android and ios directories that allow the Flutter code to interface with native functionalities (including platform-specific configuration files, manifests, and Gradle or Xcode projects). Optionally, include the web folder to show multi-platform support.
• External Services and Configurations: Note the Firebase configuration files (firebase.json and the GitHub workflow for Firebase deploy) as a backend/deployment/service element if the app uses Firebase for hosting, authentication, or analytics.
Relationships and Interactions
• How configuration and environment classes (e.g., in lib/src/env) feed into shaping API interactions (like GoogleSignIn) and possibly into the authentication flow.
Architectural Patterns & Design Principles
• Separation of concerns – clearly delineate the UI components from business logic and data handling, which is in line with common patterns like MVVM or Clean Architecture.
• That the system is modularized: every module such as “login”, “transaction handling”, “data analysis”, and “savings calculation” has its dedicated code structure making it easier to extend or modify independently.
• That validation logic is kept separate (in the lib/src/api/validation directory) to ensure robust data processing and error handling.