How crash-override-z/working_shelfy_app works
Shelfy is a sushi-ordering and pickup application with web and console interfaces, plus an older CSV-based console implementation. In the web flow, customers review and confirm an order, which is persisted for staff to manage; customers can also look up orders by ticket. Staff sign in to view orders and update their status. The excerpts show the main web persistence and admin operations; the small README and unsampled page markup limit evidence about presentation and some wiring.
Main entry points: ShelfyDbContext.cs EF data context · Index.cshtml.cs Order review · Admin.cshtml.cs Order dashboard · Order.cs Order entity
Components 16
Web ordering
- Web app
ShelfyWeb/Program.cs - Order review
ShelfyWeb/Pages/Index.cshtml.cs - Ticket lookup
ShelfyWeb/Pages/Lookup.cshtml.cs
Order operations
- Admin login
ShelfyWeb/Pages/Login.cshtml.cs - Order dashboard
ShelfyWeb/Pages/Admin.cshtml.cs - Cookie authentication
ShelfyWeb/Program.cs
Order data
- EF data context
DATA/ShelfyDbContext.cs - Order entity
DATA/Order.cs - Order item
DATA/OrderItem.cs - SQLite database
ShelfyWeb/shelfy.db
Console ordering
- Console ordering
ShelfyConsole/Program.cs - CSV ordering
Program.cs - Legacy order model
models/Orders.cs - CSV order file
orders.csv
Other components
- Customer
- Staff
Connections 20
- Customer → Web app: uses
- Web app → Order review: routes pages
ShelfyWeb/Program.cs - Web app → EF data context: registers context
ShelfyWeb/Program.cs - Order review → EF data context: saves order
ShelfyWeb/Pages/Index.cshtml.cs - Order review → Order entity: creates order
ShelfyWeb/Pages/Index.cshtml.cs - Order review → Order item: creates items
ShelfyWeb/Pages/Index.cshtml.cs - Ticket lookup → EF data context: searches tickets
ShelfyWeb/Pages/Lookup.cshtml.cs - Order dashboard → EF data context: loads and updates
ShelfyWeb/Pages/Admin.cshtml.cs - Order dashboard → Order entity: reads orders
ShelfyWeb/Pages/Admin.cshtml.cs - EF data context → Order entity: maps entity
DATA/ShelfyDbContext.cs - EF data context → SQLite database: uses SQLite
DATA/ShelfyDbContext.cs - Staff → Admin login: signs in
- Admin login → Cookie authentication: signs in
ShelfyWeb/Pages/Login.cshtml.cs - Cookie authentication → Order dashboard: protects page
- Staff → Order dashboard: manages orders
- Customer → Ticket lookup: searches ticket
- Console ordering → EF data context: saves orders
ShelfyConsole/Program.cs - Console ordering → Order entity: creates order
ShelfyConsole/Program.cs - CSV ordering → CSV order file: appends orders
Program.cs - CSV ordering → Legacy order model: uses cart model