Documentation Index
Fetch the complete documentation index at: https://mintlify.com/marcosfabricio3/simple-manager-mobile/llms.txt
Use this file to discover all available pages before exploring further.
Clean Architecture
Simple Manager Mobile follows Clean Architecture principles strictly.Layer Flow
The flow must always follow this pattern:Layer Responsibilities
Presentation Layer
- Screens: UI components that display data and handle user interactions
- Hooks: Custom React hooks that interface with services
- Components: Reusable UI elements
Application Layer
- Services: Business logic and orchestration
- Validators: Input validation and business rules
Infrastructure Layer
- Repositories: Database operations only
- Database: Database setup and configuration
Domain Layer
- Entities: Core business objects and types
State Management
The project intentionally avoids Redux, Zustand, or similar libraries to keep the architecture simple.Component Style
Architecture Example
Here’s how the layers work together for the Records feature:Screen Layer
Hook Layer
Service Layer
Repository Layer
Key Takeaways
- Respect layer boundaries - Each layer has a specific responsibility
- No shortcuts - Always follow the full flow from screen to database
- Keep it simple - No unnecessary state management libraries
- Validate early - Validation belongs in the service layer
- Pure repositories - Database logic only, no business rules