How minkhantkyaw-design/coffeeshopsample works
Bean & Bloom is a coffee-shop management app: guests browse and search coffee, customers authenticate and place counter-pickup orders, and sales staff manage coffee inventory and progress orders. The React UI calls the ASP.NET API through Vite’s documented /api proxy; the API applies role and order rules and persists users, coffees, and orders in SQL Server. The main workflow and key management branches are documented, but excerpts do not show all route definitions or frontend API helpers, so those internal links are omitted where unverified.
Main entry points: Program.cs HTTP API · Models.cs Domain entities · main.jsx Shop interface · vite.config.js API proxy
Components 10
Customer and sales UI
- Shop interface
frontend/src/main.jsx - API proxy
frontend/vite.config.js
API and business rules
- HTTP API
backend/Program.cs - Accounts and sessions
backend/Program.cs - Coffee catalog
backend/Program.cs - Order and stock rules
backend/Program.cs - Order progression
backend/Program.cs
Persistent data
- Domain entities
backend/Models.cs - SQL Server database
Other components
- Guest or user
Connections 14
- Guest or user → Shop interface: uses
README.md - Shop interface → API proxy: requests /api
README.md - API proxy → HTTP API: forwards /api
README.md - Shop interface → HTTP API: loads and orders
frontend/src/main.jsx - HTTP API → Accounts and sessions: routes auth
backend/Program.cs - HTTP API → Coffee catalog: routes catalog
backend/Program.cs - HTTP API → Order and stock rules: routes purchases
backend/Program.cs - HTTP API → Order progression: routes updates
backend/Program.cs - Accounts and sessions → Domain entities: uses users
backend/Program.cs - Coffee catalog → Domain entities: uses coffees
backend/Program.cs - Order and stock rules → Domain entities: uses orders
backend/Program.cs - Order progression → Domain entities: updates orders
backend/Program.cs - Domain entities → SQL Server database: maps entities
backend/Models.cs - HTTP API → SQL Server database: initializes and seeds
backend/Program.cs