How anilchowdary4531/cafe-system works
Tiffzy is a cafe operations and ordering platform with a React web app, an Android customer app, and a Fastify/Prisma backend. Customers authenticate, discover restaurants and menus, place and pay for orders, then track them; staff and owners use operational screens for orders, kitchen, tables, inventory, and supply management. The backend also supports reporting, notifications, and asset uploads. The graph combines documented capabilities with indexed imports and excerpted calls; unsampled feature internals and many frontend-to-API links are intentionally not inferred.
Main entry points: storageService.js Asset storage routing · server.js API server · AuthRepository.kt Auth repository · App.jsx Web route app
Components 32
Android app
- Android entry
app/src/main/java/com/tiffzy/app/MainActivity.kt - Mobile navigation
app/src/main/java/com/tiffzy/app/navigation/NavGraph.kt - Mobile authentication
app/src/main/java/com/tiffzy/app/ui/auth/AuthViewModel.kt - Auth repository
app/src/main/java/com/tiffzy/app/data/repository/AuthRepository.kt - Android API client
app/src/main/java/com/tiffzy/app/data/remote/ApiService.kt - Auth persistence
app/src/main/java/com/tiffzy/app/data/local/AuthDataStore.kt - Push notifications
app/src/main/java/com/tiffzy/app/service/TiffzyMessagingService.kt
Web experiences
- Web route app
frontend/src/App.jsx - Customer ordering
frontend/src/pages/customer/MenuPage.jsx - Web sign-in
frontend/src/pages/Login.jsx - Web auth state
frontend/src/context/AuthContext.jsx - Staff session storage
frontend/src/utils/staffSessionStorage.js - Web API client
frontend/src/utils/apiClient.js - Owner operations
frontend/src/pages/admin/MenuStudio.jsx - Kitchen live board
frontend/src/pages/admin/OwnerKitchenLive.jsx - Table operations
frontend/src/pages/admin/OwnerTables.jsx - Server workflow
frontend/src/pages/Server.jsx
Backend services
- API server
backend/src/server.js - API routes
backend/src/routes/index.js - Customer auth
backend/src/controllers/customerAuthController.js - Payment processing
backend/src/controllers/payment.controller.js
Operations domains
- Supply marketplace
backend/src/routes/supplyMarketplace.routes.js - Recipe management
backend/src/services/recipeService.js - Reporting
backend/src/routes/report.routes.js - Report generation
backend/src/services/reportService.js
Persistence and integrations
- Asset storage routing
backend/src/services/storageService.js - S3 asset storage
backend/src/services/s3Service.js - Local asset storage
backend/src/services/localStorageService.js - Prisma database
- Cashfree payments
Other components
- Customer
- Web / mobile clients
Connections 29
- Customer → Android entry: uses
app/src/main/java/com/tiffzy/app/MainActivity.kt - Android entry → Auth persistence: loads settings
app/src/main/java/com/tiffzy/app/MainActivity.kt - Android entry → Mobile navigation: starts navigation
app/src/main/java/com/tiffzy/app/MainActivity.kt - Mobile navigation → Mobile authentication: routes auth
app/src/main/java/com/tiffzy/app/navigation/NavGraph.kt - Mobile authentication → Auth repository: delegates auth
- Auth repository → Android API client: calls
app/src/main/java/com/tiffzy/app/data/repository/AuthRepository.kt - Auth repository → Auth persistence: persists credentials
app/src/main/java/com/tiffzy/app/data/repository/AuthRepository.kt - Auth repository → Android API client: configures client
app/src/main/java/com/tiffzy/app/data/repository/AuthRepository.kt - Push notifications → Android API client: registers token
app/src/main/java/com/tiffzy/app/service/TiffzyMessagingService.kt - Web / mobile clients → Web route app: opens
frontend/src/App.jsx - Web route app → Web sign-in: routes to
frontend/src/App.jsx - Web route app → Server workflow: routes to
frontend/src/App.jsx - Web route app → Owner operations: routes to
frontend/src/App.jsx - Web sign-in → Web auth state: uses auth
- Web auth state → Staff session storage: reads and writes
frontend/src/context/AuthContext.jsx - Web API client → Staff session storage: reads session
frontend/src/utils/apiClient.js - Web API client → API server: sends API requests
README.md - Android API client → API server: requests API
README.md - API server → API routes: registers routes
backend/src/server.js - API server → Prisma database: initializes Prisma
backend/src/server.js - API server → Asset storage routing: configures uploads
backend/src/server.js - API routes → Customer auth: routes auth
- Payment processing → Cashfree payments: processes payments
backend/src/controllers/payment.controller.js - Supply marketplace → Recipe management: upserts recipes
backend/src/routes/supplyMarketplace.routes.js - Reporting → Report generation: uses reports
backend/src/routes/report.routes.js - Asset storage routing → S3 asset storage: selects S3
backend/src/services/storageService.js - Asset storage routing → Local asset storage: selects local
backend/src/services/storageService.js - Asset storage routing → S3 asset storage: uploads and deletes
backend/src/services/storageService.js - Asset storage routing → Local asset storage: uploads and deletes
backend/src/services/storageService.js