How gopi-2006/tiruttani-quick works
Tiruttani Quick is a grocery-delivery platform with separate customer and admin Flutter apps, shared business logic, and Firebase-backed services. The customer-side product journey spans service-area checks, shopping, cart, checkout, and order tracking; the admin app supports order and product management. The sampled backend shows order-triggered notifications and login protections, while the Cloudflare Worker authenticates requests and dispatches FCM notifications. App internals beyond the supplied excerpts are represented by their existing feature directories; their links are not asserted without evidence.
Main entry points: main.dart App entry and routing · admin_dashboard_screen.dart Order management · functions/index.js Order notification triggers · src/index.js Notification API routes
Components 32
Customer app
- App entry and routing
Tiruttaniquick_customer/lib/main.dart - Service area
Tiruttaniquick_customer/lib/features/service_area - Customer sign-in
Tiruttaniquick_customer/lib/features/auth/presentation - Browse products
Tiruttaniquick_customer/lib/features/home/presentation/home_screen.dart - Search and filters
Tiruttaniquick_customer/lib/features/search/presentation - Product details
Tiruttaniquick_customer/lib/features/products/presentation/product_details_screen.dart - Cart
Tiruttaniquick_customer/lib/features/cart/presentation/cart_screen.dart - Checkout
Tiruttaniquick_customer/lib/features/checkout/presentation/checkout_screen.dart - Order history and tracking
Tiruttaniquick_customer/lib/features/orders/presentation - Profile and settings
Tiruttaniquick_customer/lib/features/profile/presentation
Admin app
- Admin app entry
Tiruttaniquick_admin/lib/main.dart - Admin sign-in
Tiruttaniquick_admin/lib/features/auth/presentation/login_screen.dart - Order management
Tiruttaniquick_admin/lib/features/admin/presentation/admin_dashboard_screen.dart - Product management
Tiruttaniquick_admin/lib/features/admin/presentation/add_edit_product_screen.dart - Marketing and banners
Tiruttaniquick_admin/lib/features/admin/presentation/marketing_tab.dart - Reports and imports
Tiruttaniquick_admin/lib/features/admin/presentation/reports_screen.dart
Shared logic
- Domain models
Tiruttaniquick_shared/lib/models - Firestore service
Tiruttaniquick_shared/lib/services/firestore_service.dart - Authentication repository
Tiruttaniquick_shared/lib/services/auth_repository.dart - Payment service
Tiruttaniquick_shared/lib/services/payment_service.dart - Product search engine
Tiruttaniquick_shared/lib/services/product_search_engine.dart - Offer engine
Tiruttaniquick_shared/lib/services/offer_engine.dart
Backend services
- Order notification triggers
functions/index.js - Login security controls
functions/security.js - Notification API routes
cloudflare-notification-worker/src/index.js - Firebase token verification
cloudflare-notification-worker/src/auth.js - FCM dispatcher
cloudflare-notification-worker/src/fcm.js - Notification templates
cloudflare-notification-worker/src/templates.js
Other components
- Customer
- Store administrator
- Firebase services
- Firebase Cloud Messaging
Connections 24
- Customer → App entry and routing: uses
README.md - Store administrator → Admin app entry: uses
README.md - App entry and routing → Service area: routes to
- App entry and routing → Customer sign-in: routes to
- App entry and routing → Browse products: routes to
- Browse products → Search and filters: offers
- Browse products → Product details: opens
- Product details → Cart: adds items
- Cart → Checkout: continues to
- Checkout → Order history and tracking: places order
- App entry and routing → Profile and settings: routes to
- Admin app entry → Admin sign-in: routes to
- Admin app entry → Order management: routes to
- Order management → Product management: manages
- Order management → Marketing and banners: provides access
- Order management → Reports and imports: provides access
- Order notification triggers → Login security controls: imports controls
functions/index.js - Order notification triggers → Firebase services: reads and updates
functions/index.js - Order notification triggers → Firebase Cloud Messaging: sends notifications
functions/index.js - Notification API routes → Firebase token verification: verifies tokens
cloudflare-notification-worker/src/index.js - Notification API routes → Notification templates: normalizes status
cloudflare-notification-worker/src/index.js - Notification API routes → FCM dispatcher: dispatches notifications
cloudflare-notification-worker/src/index.js - FCM dispatcher → Notification templates: builds messages
cloudflare-notification-worker/src/fcm.js - FCM dispatcher → Firebase Cloud Messaging: sends push
cloudflare-notification-worker/src/fcm.js