How jhelnv3/freshcart-imdbsys32 works
FreshCart is an ASP.NET MVC shopping application. Customers browse and filter products, manage a database-backed cart, place orders, and follow order status through customer-confirmed receipt; account recovery uses simulated email. Staff and administrators manage catalog, users, and orders, with dashboard summaries. The graph separates MVC entry points, application services, domain records, and persistence. The source index and sampled service/controller code support the main calls; README documents capabilities whose detailed implementation was not sampled, so those relationships are marked as documented rather than inferred.
Main entry points: ApplicationDbContext.cs Application database · OrderService.cs Order workflow · AuthService.cs Session auth · CartService.cs Cart operations
Components 21
MVC workflows
- Account endpoints
FreshCart/FreshCart/Controllers/AccountController.cs - Catalog endpoints
FreshCart/FreshCart/Controllers/ProductController.cs - Home endpoints
FreshCart/FreshCart/Controllers/HomeController.cs - Cart endpoints
FreshCart/FreshCart/Controllers/CartController.cs - Order endpoints
FreshCart/FreshCart/Controllers/OrderController.cs - Admin operations
FreshCart/FreshCart/Controllers/AdminController.cs
Application services
- Session auth
FreshCart/FreshCart/Services/AuthService.cs - Product search
FreshCart/FreshCart/Services/ProductService.cs - Cart operations
FreshCart/FreshCart/Services/CartService.cs - Order workflow
FreshCart/FreshCart/Services/OrderService.cs - Simulated email
FreshCart/FreshCart/Services/EmailService.cs
Commerce domain
- User records
FreshCart/FreshCart/Models/Entities/User.cs - Product records
FreshCart/FreshCart/Models/Entities/Product.cs - Category records
FreshCart/FreshCart/Models/Entities/Category.cs - Cart records
FreshCart/FreshCart/Models/Entities/CartItem.cs - Order records
FreshCart/FreshCart/Models/Entities/Order.cs - Order line records
FreshCart/FreshCart/Models/Entities/OrderDetail.cs
Persistence
- Application database
FreshCart/FreshCart/Data/ApplicationDbContext.cs - Email log
FreshCart/FreshCart/wwwroot/logs/email_log.txt
Other components
- Customer
- Staff / admin
Connections 33
- Customer → Account endpoints: manages account
README.md - Customer → Catalog endpoints: browses products
README.md - Customer → Cart endpoints: shops with
README.md - Customer → Order endpoints: tracks orders
README.md - Staff / admin → Admin operations: manages store
README.md - Account endpoints → Session auth: authenticates
FreshCart/FreshCart/Controllers/AccountController.cs - Account endpoints → Simulated email: sends recovery code
FreshCart/FreshCart/Controllers/AccountController.cs - Catalog endpoints → Product search: searches catalog
FreshCart/FreshCart/Controllers/ProductController.cs - Home endpoints → Product search: loads products
FreshCart/FreshCart/Controllers/HomeController.cs - Catalog endpoints → Cart operations: adds items
FreshCart/FreshCart/Controllers/ProductController.cs - Cart endpoints → Cart operations: manages cart
FreshCart/FreshCart/Controllers/CartController.cs - Cart endpoints → Order workflow: submits checkout
FreshCart/FreshCart/Controllers/CartController.cs - Cart endpoints → Simulated email: requests confirmation
FreshCart/FreshCart/Controllers/CartController.cs - Order endpoints → Order workflow: tracks status
FreshCart/FreshCart/Controllers/OrderController.cs - Admin operations → Session auth: checks roles
FreshCart/FreshCart/Controllers/AdminController.cs - Admin operations → Order workflow: manages orders
FreshCart/FreshCart/Controllers/AdminController.cs - Admin operations → Product search: reads catalog
FreshCart/FreshCart/Controllers/AdminController.cs - Session auth → Application database: reads users
FreshCart/FreshCart/Services/AuthService.cs - Session auth → User records: loads user
FreshCart/FreshCart/Services/AuthService.cs - Product search → Application database: queries catalog
FreshCart/FreshCart/Services/ProductService.cs - Cart operations → Session auth: gets current user
FreshCart/FreshCart/Services/CartService.cs - Cart operations → Application database: reads and writes cart
FreshCart/FreshCart/Services/CartService.cs - Order workflow → Session auth: gets current user
FreshCart/FreshCart/Services/OrderService.cs - Order workflow → Cart operations: uses and clears cart
FreshCart/FreshCart/Services/OrderService.cs - Order workflow → Application database: creates and updates orders
FreshCart/FreshCart/Services/OrderService.cs - Simulated email → Email log: appends messages
FreshCart/FreshCart/Services/EmailService.cs - Application database → User records: maps records
FreshCart/FreshCart/Data/ApplicationDbContext.cs - Application database → Product records: maps records
FreshCart/FreshCart/Data/ApplicationDbContext.cs - Application database → Category records: maps records
FreshCart/FreshCart/Data/ApplicationDbContext.cs - Application database → Cart records: maps records
FreshCart/FreshCart/Data/ApplicationDbContext.cs - Application database → Order records: maps records
FreshCart/FreshCart/Data/ApplicationDbContext.cs - Application database → Order line records: maps records
FreshCart/FreshCart/Data/ApplicationDbContext.cs - Order workflow → Order records: sets six statuses
FreshCart/FreshCart/Services/OrderService.cs