How alexeycreator/sesterenkaapp works
«Колесо и поршень» is a React/TypeScript storefront backed by an ASP.NET Core API and SQL Server. The main customer journey is browsing and filtering auto parts, adding items to a basket, and placing an order with a pickup location; users can also register and sign in. Employee and administrator account areas support operational management, while news and informational pages provide supporting content. The graph preserves these documented capabilities and the sampled API, authentication, and persistence layers; unsampled feature wiring is shown only where the README documents it.
Main entry points: ServerDbContext.cs Entity Framework context · App.tsx Application routing · servicesApi Frontend API clients · Controllers Web API
Components 22
Storefront
- Application routing
frontend/client/src/App.tsx - Product catalog
frontend/client/src/components/pages/Catalog - News and information
frontend/client/src/components/pages - Sign-in and registration
frontend/client/src/components/header/components - Authentication state
frontend/client/src/contexts/AuthContext.tsx
Commerce
- Basket
frontend/client/src/components/pages/OrderItem - Order checkout
frontend/client/src/components/pages/Order/OrderPage.tsx - Order details
frontend/client/src/components/pages/Order/OrderDetailsPage.tsx
Operations
- Account area
frontend/client/src/components/pages/Account - Admin and employee tools
frontend/client/src/components/pages/Account/components
API and persistence
- Frontend API clients
frontend/client/src/components/servicesApi - User requests
frontend/client/src/service/user/Requests.tsx - Web API
backend/WebApi/WebApi/Controllers - User and auth endpoints
backend/WebApi/WebApi/Controllers/UsersController.cs - Product endpoints
backend/WebApi/WebApi/Controllers/ProductsController.cs - Basket endpoints
backend/WebApi/WebApi/Controllers/OrderItemsController.cs - Order endpoints
backend/WebApi/WebApi/Controllers/OrdersController.cs - Address endpoints
backend/WebApi/WebApi/Controllers/AddressesController.cs - Entity Framework context
backend/WebApi/WebApi/Methods/ServerDbContext.cs - SQL Server data
- Database backup
backend/WebApi/WebApi/Services/DatabaseBackupBackgroundService.cs
Other components
- Shopper
Connections 30
- Shopper → Application routing: uses
- Application routing → Product catalog: routes to
frontend/client/src/App.tsx - Application routing → News and information: routes to
frontend/client/src/App.tsx - Application routing → Order checkout: routes to
frontend/client/src/App.tsx - Application routing → Order details: routes to
frontend/client/src/App.tsx - Shopper → Sign-in and registration: signs in
- Sign-in and registration → Authentication state: updates
frontend/client/src/contexts/AuthContext.tsx - Shopper → Product catalog: browses
- Product catalog → Frontend API clients: requests data
frontend/client/src/components/pages/Catalog/hooks/useCatalogData.tsx - Frontend API clients → Web API: calls
- Shopper → Basket: adds products
- Basket → Frontend API clients: requests basket
- Shopper → Order checkout: places order
- Order checkout → Frontend API clients: submits order
frontend/client/src/components/pages/Order/OrderPage.tsx - Order checkout → Address endpoints: selects pickup
- Account area → User requests: loads account
frontend/client/src/components/pages/Account/hooks/useAccountData.tsx - Shopper → Account area: opens account
- Account area → Admin and employee tools: shows role tools
- Admin and employee tools → Frontend API clients: manages records
- User requests → User and auth endpoints: calls
- Web API → Product endpoints: routes requests
- Web API → Basket endpoints: routes requests
- Web API → Order endpoints: routes requests
- User and auth endpoints → Entity Framework context: reads and writes
backend/WebApi/WebApi/Controllers/UsersController.cs - Product endpoints → Entity Framework context: reads and writes
backend/WebApi/WebApi/Controllers/ProductsController.cs - Basket endpoints → Entity Framework context: reads and writes
backend/WebApi/WebApi/Controllers/OrderItemsController.cs - Order endpoints → Entity Framework context: reads and writes
backend/WebApi/WebApi/Controllers/OrdersController.cs - Address endpoints → Entity Framework context: reads and writes
backend/WebApi/WebApi/Controllers/AddressesController.cs - Entity Framework context → SQL Server data: persists entities
backend/WebApi/WebApi/Methods/ServerDbContext.cs - Database backup → SQL Server data: backs up