How ad668/fruit-shop-ecommerce-website works
This is an Angular storefront backed by an ASP.NET Core API, with a fruit catalog, cart and checkout, order tracking and delivery, authentication, administration, invoices, and payment hooks. The main customer flow is browse products, build a cart, submit checkout, then track delivery; the API owns checkout, persistence, and payment coordination. The graph also preserves the documented admin, invoice, and category capabilities. Edges reflect shown calls, registrations, or README statements; unsampled implementation details are not inferred.
Main entry points: api.service.ts API client · OrdersController.cs Orders API · Repository.cs Repository · pages Storefront pages
Components 24
Storefront
- Storefront pages
frontend/src/app/pages - Admin pages
frontend/src/app/pages/admin-add-fruit/admin-add-fruit.component.ts - Delivery page
frontend/src/app/pages/delivery-partner/delivery-partner.component.ts - Cart state
frontend/src/app/services/cart.service.ts - Auth client
frontend/src/app/services/auth.service.ts - API client
frontend/src/app/services/api.service.ts - Route guards
frontend/src/app/guards/admin.guard.ts
API workflows
- Catalog API
backend/OnlineFruitShop.API/Controllers/FruitsController.cs - Categories API
backend/OnlineFruitShop.API/Controllers/CategoriesController.cs - Authentication API
backend/OnlineFruitShop.API/Controllers/AuthController.cs - Orders API
backend/OnlineFruitShop.API/Controllers/OrdersController.cs - Invoices API
backend/OnlineFruitShop.API/Controllers/InvoicesController.cs - Contact API
backend/OnlineFruitShop.API/Controllers/ContactController.cs
Domain and persistence
- Shop entities
backend/OnlineFruitShop.Core/Entities - Repository
backend/OnlineFruitShop.Infrastructure/Repositories/Repository.cs - Database context
backend/OnlineFruitShop.Infrastructure/Data/ApplicationDbContext.cs
Identity and integrations
- Auth service
backend/OnlineFruitShop.Infrastructure/Services/AuthService.cs - Payment service
backend/OnlineFruitShop.Infrastructure/Services/PaymentService.cs - Email service
backend/OnlineFruitShop.Infrastructure/Services/EmailService.cs - Delivery receipts
backend/OnlineFruitShop.Infrastructure/Services/DeliveryReceiptService.cs
Other components
- Shopper
- Email provider
- Payment gateway
- SQL database
Connections 31
- Shopper → Storefront pages: uses
- Storefront pages → API client: requests data
frontend/src/app/pages/auth/auth.component.ts - Storefront pages → Cart state: updates cart
frontend/src/app/pages/checkout/checkout.component.ts - Storefront pages → Auth client: uses identity
frontend/src/app/pages/auth/auth.component.ts - Admin pages → API client: manages catalog
frontend/src/app/pages/admin-add-fruit/admin-add-fruit.component.ts - Delivery page → API client: handles delivery
- API client → Catalog API: calls catalog
frontend/src/app/services/api.service.ts - API client → Authentication API: calls auth
frontend/src/app/services/api.service.ts - API client → Orders API: calls orders
frontend/src/app/services/api.service.ts - API client → Contact API: sends message
frontend/src/app/services/api.service.ts - API client → Invoices API: requests invoices
- API client → Categories API: requests categories
- Storefront pages → Route guards: route access
frontend/src/app/app-routing.module.ts - Auth client → Route guards: checks roles
- Catalog API → Repository: uses repository
backend/OnlineFruitShop.API/Controllers/FruitsController.cs - Categories API → Repository: uses repository
backend/OnlineFruitShop.API/Controllers/CategoriesController.cs - Invoices API → Repository: uses repository
backend/OnlineFruitShop.API/Controllers/InvoicesController.cs - Authentication API → Repository: uses repository
backend/OnlineFruitShop.API/Controllers/AuthController.cs - Authentication API → Auth service: authenticates
backend/OnlineFruitShop.API/Controllers/AuthController.cs - Orders API → Repository: uses repository
backend/OnlineFruitShop.API/Controllers/OrdersController.cs - Orders API → Payment service: creates payment
backend/OnlineFruitShop.API/Controllers/OrdersController.cs - Orders API → Email service: sends notices
backend/OnlineFruitShop.API/Controllers/OrdersController.cs - Orders API → Delivery receipts: creates receipts
backend/OnlineFruitShop.API/Controllers/OrdersController.cs - Contact API → Email service: sends message
backend/OnlineFruitShop.API/Controllers/ContactController.cs - Repository → Database context: queries context
backend/OnlineFruitShop.Infrastructure/Repositories/Repository.cs - Database context → Shop entities: maps entities
backend/OnlineFruitShop.Infrastructure/Data/ApplicationDbContext.cs - Payment service → Payment gateway: integrates
- Email service → Email provider: sends email
backend/OnlineFruitShop.Infrastructure/Services/EmailService.cs - Database context → SQL database: persists data
- Auth service → Authentication API: provides auth operations
- Payment service → Orders API: registered for orders