How papi0404/eight-canteen works
Eight Canteen is an Android app for school canteen ordering, payments, and stand operations. Students authenticate, browse stands and menus (including QR scanning), build a cart, check out using QRIS or cash, and follow receipt/order status; sellers manage menus and order fulfillment, while admins manage stands and users. MainActivity routes Compose screens; the repository mediates API operations, Retrofit provides backend calls, and SessionManager keeps local session state. Connections for unsampled features are documented at the capability level; only source-supported calls are drawn as solid edges.
Main entry points: MainActivity.kt Compose navigation · CanteenRepository.kt Canteen repository · StudentDashboardScreen.kt Student dashboard · StandMenuScreen.kt Stand menu
Components 26
App navigation
- Compose navigation
app/src/main/java/com/januarzidanetinendeng/eightcanteen/MainActivity.kt - Authentication
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/login/AuthViewModel.kt - Student registration
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/register/StudentRegisterScreen.kt - OTP verification
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/otp/OtpVerificationScreen.kt
Student ordering
- Student dashboard
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/dashboard/StudentDashboardScreen.kt - Stand QR scanner
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/components/QrScannerScreen.kt - Stand catalog
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/stand/AllStandsScreen.kt - Stand menu
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/stand/StandMenuScreen.kt
Orders and rewards
- Cart and checkout
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/checkout/CheckoutScreen.kt - Payment selection
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/checkout/CheckoutPaymentScreen.kt - QRIS payment
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/payment/QrisPaymentScreen.kt - Counter payment
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/payment/PayAtCounterScreen.kt - Receipt and status
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/payment/StrukLunasScreen.kt - Order history
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/dashboard/StudentOrderHistoryScreen.kt - Reward points
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/points/PointsRewardScreen.kt
Stand operations
- Seller dashboard
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/seller/SellerDashboardScreen.kt - Admin dashboard
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/admin/AdminDashboardScreen.kt - Admin stand setup
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/admin/AdminAddStandScreen.kt - Stand registration
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/stand/StandRegisterScreen.kt - Order notifications
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/components/NotificationScreen.kt
Data and session
- Canteen repository
app/src/main/java/com/januarzidanetinendeng/eightcanteen/data/repository/CanteenRepository.kt - API service
app/src/main/java/com/januarzidanetinendeng/eightcanteen/data/remote/ApiService.kt - API client config
app/src/main/java/com/januarzidanetinendeng/eightcanteen/data/remote/ApiConfig.kt - Session storage
app/src/main/java/com/januarzidanetinendeng/eightcanteen/data/local/SessionManager.kt
Other components
- Student / seller
- Canteen backend
Connections 36
- Student / seller → Compose navigation: uses app
README.md - Compose navigation → Authentication: routes to
app/src/main/java/com/januarzidanetinendeng/eightcanteen/MainActivity.kt - Compose navigation → Student dashboard: routes to
app/src/main/java/com/januarzidanetinendeng/eightcanteen/MainActivity.kt - Compose navigation → Stand catalog: routes to
app/src/main/java/com/januarzidanetinendeng/eightcanteen/MainActivity.kt - Compose navigation → Stand menu: routes to
app/src/main/java/com/januarzidanetinendeng/eightcanteen/MainActivity.kt - Compose navigation → Seller dashboard: routes to
app/src/main/java/com/januarzidanetinendeng/eightcanteen/MainActivity.kt - Compose navigation → Admin dashboard: routes to
app/src/main/java/com/januarzidanetinendeng/eightcanteen/MainActivity.kt - Compose navigation → OTP verification: routes to
app/src/main/java/com/januarzidanetinendeng/eightcanteen/MainActivity.kt - Compose navigation → Student registration: routes to
app/src/main/java/com/januarzidanetinendeng/eightcanteen/MainActivity.kt - Compose navigation → Cart and checkout: routes to
app/src/main/java/com/januarzidanetinendeng/eightcanteen/MainActivity.kt - Compose navigation → Receipt and status: routes to
app/src/main/java/com/januarzidanetinendeng/eightcanteen/MainActivity.kt - Student dashboard → Canteen repository: loads catalog
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/dashboard/StudentDashboardScreen.kt - Student dashboard → Stand catalog: selects stand
app/src/main/java/com/januarzidanetinendeng/eightcanteen/MainActivity.kt - Stand QR scanner → Stand menu: opens stand
- Stand menu → Canteen repository: loads menu
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/stand/StandMenuScreen.kt - Stand menu → Cart and checkout: adds to cart
- Cart and checkout → Payment selection: continues checkout
- Payment selection → QRIS payment: chooses QRIS
- Payment selection → Counter payment: chooses cash
- Receipt and status → Canteen repository: refreshes status
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/payment/StrukLunasScreen.kt - Student dashboard → Order history: opens history
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/dashboard/StudentDashboardScreen.kt - Student / seller → Reward points: views rewards
README.md - Seller dashboard → Canteen repository: manages orders
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/seller/SellerDashboardScreen.kt - Seller dashboard → Canteen repository: uploads images
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/seller/SellerDashboardScreen.kt - Admin dashboard → Canteen repository: manages users
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/admin/AdminDashboardScreen.kt - Admin dashboard → Admin stand setup: opens setup
- Student / seller → Stand registration: registers stand
README.md - Student / seller → Order notifications: checks updates
README.md - Authentication → Session storage: stores session
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/login/AuthViewModel.kt - Student registration → Canteen repository: registers account
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/register/StudentRegisterScreen.kt - OTP verification → Canteen repository: verifies code
app/src/main/java/com/januarzidanetinendeng/eightcanteen/ui/otp/OtpVerificationScreen.kt - Canteen repository → API service: calls endpoints
app/src/main/java/com/januarzidanetinendeng/eightcanteen/data/repository/CanteenRepository.kt - API service → Canteen backend: sends requests
README.md - API client config → API service: creates client
app/src/main/java/com/januarzidanetinendeng/eightcanteen/data/remote/ApiConfig.kt - Session storage → API client config: sets token
app/src/main/java/com/januarzidanetinendeng/eightcanteen/data/local/SessionManager.kt - Compose navigation → Session storage: checks session
app/src/main/java/com/januarzidanetinendeng/eightcanteen/MainActivity.kt