How yaroslav33-v/cafe works
Cafe is a customer-and-admin café ordering web app: customers browse food and offers, manage a cart, pay, and track orders; admins manage menu content, promotions, and orders. The repository also contains a card-payment API and a Telegram bot for offer/promo commands and background notifications. The graph preserves these separate runtime branches. Edges reflect shown calls, registrations, SQL access, or README claims; unsampled connections are omitted or marked unverified.
Main entry points: CafeWeb/Program.cs MVC application · CafeController.cs Cafe actions · UserController.cs Account actions · TelegramBot/Program.cs Bot receiver
Components 27
Cafe web app
- MVC application
CafeWeb/Program.cs - Cafe actions
CafeWeb/Controllers/CafeController.cs - Account actions
CafeWeb/Controllers/UserController.cs - Admin actions
CafeWeb/Controllers/AdminController.cs - Food catalog
CafeWeb/Services/CafeService.cs - Accounts and offers
CafeWeb/Services/UserService.cs - Admin management
CafeWeb/Services/AdminService.cs - Cafe PostgreSQL
Ordering and status
- Session cart
CafeWeb/Services/CartService.cs - Checkout actions
CafeWeb/Controllers/PaymentController.cs - Order service
CafeWeb/Services/OrderService.cs - Order status updater
CafeWeb/Services/OrderStatusUpdaterService.cs - Live order updates
CafeWeb/Hubs/CafeHub.cs
Payment API
- Payment API
PaymentApi/PaymentApi/Program.cs - Card authentication
PaymentApi/PaymentApi/Services/AuthService.cs - Payment processing
PaymentApi/PaymentApi/Services/PaymentService.cs - Bank PostgreSQL
Telegram bot
- Bot receiver
TelegramBot/TelegramBot/Program.cs - Command dispatcher
TelegramBot/TelegramBot/Core/CommandDispatcher.cs - Bot commands
TelegramBot/TelegramBot/Commands - Bot database access
TelegramBot/TelegramBot/Core/DatabaseProcessor.cs - Notification worker
TelegramBot/TelegramBot/Core/BackgroundWorker.cs - Telegram notifications
TelegramBot/TelegramBot/Core/NotificationService.cs
Other components
- Cafe customer
- Cafe administrator
- Telegram user
- Telegram API
Connections 32
- Cafe customer → MVC application: uses
- Cafe administrator → MVC application: uses
- MVC application → Cafe actions: routes to
- MVC application → Account actions: routes to
- MVC application → Admin actions: routes to
- MVC application → Live order updates: maps hub
CafeWeb/Program.cs - Cafe actions → Food catalog: gets food
CafeWeb/Controllers/CafeController.cs - Cafe actions → Session cart: updates cart
CafeWeb/Controllers/CafeController.cs - Cafe actions → Order service: loads order
CafeWeb/Controllers/CafeController.cs - Account actions → Accounts and offers: authenticates
CafeWeb/Controllers/UserController.cs - Account actions → Order service: loads history
CafeWeb/Controllers/UserController.cs - Account actions → Food catalog: gets favorites
CafeWeb/Controllers/UserController.cs - Admin actions → Admin management: manages
CafeWeb/Controllers/AdminController.cs - Food catalog → Cafe PostgreSQL: queries
CafeWeb/Services/CafeService.cs - Accounts and offers → Cafe PostgreSQL: queries
- Admin management → Cafe PostgreSQL: writes and reads
CafeWeb/Services/AdminService.cs - Checkout actions → Session cart: reads cart
CafeWeb/Controllers/PaymentController.cs - Checkout actions → Order service: creates order
CafeWeb/Controllers/PaymentController.cs - Order service → Cafe PostgreSQL: persists orders
CafeWeb/Services/OrderService.cs - Order status updater → Live order updates: pushes status
- Checkout actions → Payment API: requests payment
- Payment API → Card authentication: registers service
PaymentApi/PaymentApi/Program.cs - Payment API → Payment processing: registers service
- Card authentication → Bank PostgreSQL: checks card token
PaymentApi/PaymentApi/Services/AuthService.cs - Payment processing → Bank PostgreSQL: processes payment
- Telegram user → Bot receiver: sends commands
TelegramBot/TelegramBot/Program.cs - Bot receiver → Command dispatcher: dispatches updates
TelegramBot/TelegramBot/Program.cs - Bot receiver → Bot database access: creates processor
TelegramBot/TelegramBot/Program.cs - Bot receiver → Notification worker: starts worker
TelegramBot/TelegramBot/Program.cs - Command dispatcher → Bot commands: dispatches command
TelegramBot/TelegramBot/Program.cs - Notification worker → Telegram notifications: uses notifications
TelegramBot/TelegramBot/Core/BackgroundWorker.cs - Telegram notifications → Telegram API: sends messages