How stivencr7/potoche-appmobile works
Potoche is an Android app for the Club Campestre Potoche, combining food ordering, event reservations, promotions, and customer account features. The customer flow is to browse categorized dishes, build a cart, choose a payment method, and place an order; users can also make reservations. Admin screens manage dishes, promotions, and order status, while push notifications communicate order updates and offers. The README describes MVVM, repositories, Firebase, and Room, but no runtime source was excerpted, so implementation links are omitted or marked unverified.
Main entry points: HomeAdminScreen.kt Admin Panel · AppNavGraph.kt App Navigation · InicioScreen.kt Menu and Categories · MainActivity.kt Main Activity
Components 21
App Navigation
- Main Activity
app/src/main/java/com/example/potoche/ui/activity/MainActivity.kt - App Navigation
app/src/main/java/com/example/potoche/ui/navigation/AppNavGraph.kt
Ordering
- Menu and Categories
app/src/main/java/com/example/potoche/ui/screen/home/InicioScreen.kt - Shopping Cart
app/src/main/java/com/example/potoche/ui/screen/carrito/CarritoScreen.kt - Order Summary
app/src/main/java/com/example/potoche/ui/screen/FinalizarPedido/OrderSummaryScreen.kt - Payment Selection
app/src/main/java/com/example/potoche/ui/screen/metodopago/SeleccionarMetodoPagoScreen.kt - My Orders
app/src/main/java/com/example/potoche/ui/screen/mispedidos/MisPedidosScreen.kt
Reservations
- Reservations
app/src/main/java/com/example/potoche/ui/screen/reservas/ReservasScreen.kt - Reservation Details
app/src/main/java/com/example/potoche/ui/screen/reservasfecha/ProcesoDeReservaScreen.kt
Accounts
- Sign In
app/src/main/java/com/example/potoche/ui/screen/login/LoginScreen.kt - Customer Profile
app/src/main/java/com/example/potoche/ui/screen/perfil/PerfilScreen.kt - Saved Addresses
app/src/main/java/com/example/potoche/ui/screen/misdirecciones/MisDireccionesScreen.kt
Admin and Updates
- Promotions
app/src/main/java/com/example/potoche/ui/screen/promociones/PromocionesScreen.kt - Admin Panel
app/src/main/java/com/example/potoche/ui/screen/HomeAdmin/HomeAdminScreen.kt - Dish Management
app/src/main/java/com/example/potoche/data/remote/firestore/PlatillosFirestoreDataSource.kt - Promotion Management
app/src/main/java/com/example/potoche/ui/screen/bannerAdmin/BannerScreen.kt - Order Status
app/src/main/java/com/example/potoche/ui/screen/EstPedidoAdmin/AdminEstPedidoScreen.kt - Push Notifications
app/src/main/java/com/example/potoche/services/MyFirebaseMessagingService.kt
Other components
- Customer
- Administrator
- Firebase Services
Connections 20
- Customer → Main Activity: opens app
- Main Activity → App Navigation: starts navigation
- App Navigation → Sign In: routes to
- App Navigation → Menu and Categories: routes to
- Customer → Menu and Categories: browses menu
README.md - Menu and Categories → Shopping Cart: adds dishes
README.md - Shopping Cart → Order Summary: reviews order
README.md - Order Summary → Payment Selection: selects payment
README.md - Customer → Reservations: starts reservation
README.md - Reservations → Reservation Details: sets details
- Customer → Customer Profile: manages account
- Customer Profile → Saved Addresses: manages addresses
- Customer → Promotions: views offers
README.md - Administrator → Admin Panel: opens panel
README.md - Admin Panel → Dish Management: manages dishes
README.md - Admin Panel → Promotion Management: manages promotions
README.md - Admin Panel → Order Status: updates statuses
README.md - Order Status → Push Notifications: triggers updates
README.md - Promotions → Push Notifications: announces offers
README.md - Sign In → Firebase Services: authenticates with
README.md