TallerManager
A robust Offline-First mobile ERP for workshop management. Handling complex Recipe Calculations, Inventory State, and Cloud Synchronization.
Architectural Evolution
Migrating from a monolithic Service-Layer pattern to a modular scalable architecture to handle growing business logic complexity.
Current State
Layered Architecture using Provider for state injection. Features separate Presentation, Logic, and Data layers. Uses Batch Writes for transactional integrity during massive inventory updates.
The Transition
Moving Domain Logic (Price Calculations, Recipe recursions) out of Services into dedicated Use Cases. Implementing Repository patterns to decouple Firestore dependencies.
Optimization
Replacing full-collection streams with paginated queries and Cloud Functions triggers to handle stock deduction safely on the server-side, reducing client load.
System Design
Security & Integrity
Moving strictly from client-side logic to server-side validation. Hardcoded keys migrated to environment variables and Remote Config for hot-swapping beta tester lists.
Complex Data
Handling "Recipe Fabrication" transactions: deducting raw materials recursively and adding finished products in a single atomic batch write.