Mobile application / Full stack
Daily Quotes AI
A Flutter quotes app with offline preview, account-bound favorites and optional server-side AI quote generation.
Android debug + emulator validated

The offline screen shows locally available quotes and a category selector.
Request a quote to see the application’s local fallback behavior.
The real offline favorites list updates. Four Flutter tests passed in the accepted validation.
Problem statement
A quote app needs a useful first run without cloud credentials while protecting saved data and limiting paid provider requests when online.
Engineering objectives
Support a local preview, owner-scoped favorites and authenticated generation with cache reuse and predictable failure handling.
Architecture
Flutter uses Firebase Auth and accesses owner-scoped favorites. The callable manages Firestore cache and quota transactions, then invokes OpenRouter on the server.
- Flutter client / offline preview
- Firebase Auth + callable
- Firestore cache, quota and favorites
- Server-side quote provider
Implementation
Offline mode serves bundled quotes. Online generation shares cached category quotes by UTC day, with a generation lock and account quota. The server validates provider output type and length.
Technical decisions
Provider credentials stay server-side. Clients cannot access cache and quota collections directly. A demo-only emulator flag selects a loopback provider for integration tests.
Challenges and solutions
Concurrent first requests could duplicate external calls. A cache transaction and expiring generation lock coordinate requests and recover from failed generation.
Automated testing
Five Node.js 22 tests and four Flutter tests passed. Emulator integration verified authentication, owner-only access, cache isolation, quota, concurrent generation, failures and timeouts.
Verified results
- Flutter analysis finished with no issues.
- Android debug APK built successfully. Firebase Auth, Firestore and Functions emulator checks passed.
Limitations
App Check, content moderation and aggregate spending controls remain open before production. Offline favorites last for the session. Store publication is outside this milestone.
Future development
Complete production safeguards, then validate release builds and production configuration separately.
Repository information
- Repository
daily-quotes-ai- Validated commit
23baa86- License
- MIT
- Source
- GitHub