How rzhvms/productstore works
ProductStore is a food e-commerce application: shoppers browse products, manage a cart, authenticate, provide delivery details, place orders and pay; administrators manage catalog, categories, users and reviews. The Vue client calls a .NET REST API, whose controllers dispatch to application use cases and infrastructure adapters. README documents PostgreSQL, Redis, MinIO, SMTP and Yandex address suggestions. Several implementation links below rely on README capabilities or indexed imports because their source was not sampled; these evidence limits are reflected in citations or dashed links.
Main entry points: api.js API client · index.js Storefront routes · AuthController.cs Authentication API · Index.vue Cart and checkout
Components 29
Vue storefront
- Storefront routes
front/front-food-shop/src/router/index.js - Auth state
front/front-food-shop/src/stores/auth.js - Cart and checkout
front/front-food-shop/src/pages/cart/Index.vue - Catalog pages
front/front-food-shop/src/pages/catalog/ProductCard.vue - Admin pages
front/front-food-shop/src/pages/admin/AdminProducts.vue - API client
front/front-food-shop/src/services/api.js
Identity and accounts
- Authentication API
api/ServiceApi/Api/Controllers/AuthController/AuthController.cs - Auth use cases
api/ServiceApi/Application/UseCases/Auth/Login/LoginUseCase.cs - User management
api/ServiceApi/Api/Controllers/UserController/UserController.cs - Account use cases
api/ServiceApi/Application/UseCases/User/UpdateUserInfo/UpdateUserInfoUseCase.cs - SMTP email
api/ServiceApi/Infrastructure/Services/Email/EmailService.cs
Catalog and engagement
- Catalog and categories
api/ServiceApi/Api/Controllers/ProductController/ClientProductController.cs - Product management
api/ServiceApi/Application/UseCases/Product/ProductUseCase.cs - Product reviews
api/ServiceApi/Api/Controllers/ProductController/ProductReviewController.cs - Product images
api/ServiceApi/Application/UseCases/Image/ImageUseCase.cs
Cart and fulfillment
- Cart operations
api/ServiceApi/Api/Controllers/CartController/CartController.cs - Cart use case
api/ServiceApi/Application/UseCases/Cart/CartUseCase.cs - Order operations
api/ServiceApi/Api/Controllers/OrderController/OrderController.cs - Order use case
api/ServiceApi/Application/UseCases/Order/OrderUseCase.cs - Payment handling
api/ServiceApi/Application/UseCases/Payment/PaymentUseCase.cs - Address suggestions
api/ServiceApi/Application/UseCases/YandexMapsAddress/YandexMapsAddressUseCase.cs
API and infrastructure
- User and token store
api/ServiceApi/Infrastructure/Repositories/Auth/AuthRepository.cs - Review persistence
api/ServiceApi/Infrastructure/Repositories/Product/ProductReviewRepository.cs - Redis cart
api/ServiceApi/Infrastructure/Repositories/Cart/RedisCartRepository.cs - PostgreSQL
- MinIO object store
Other components
- Shopper
- Administrator
- Yandex Suggest
Connections 34
- Shopper → Storefront routes: browses and shops
- Administrator → Storefront routes: manages store
- Storefront routes → Auth state: checks session
- Storefront routes → Catalog pages: routes to
front/front-food-shop/src/router/index.js - Storefront routes → Cart and checkout: routes to
front/front-food-shop/src/router/index.js - Storefront routes → Admin pages: routes to
front/front-food-shop/src/router/index.js - Auth state → API client: calls auth methods
front/front-food-shop/src/stores/auth.js - Catalog pages → API client: requests catalog
- Cart and checkout → API client: requests cart
- Admin pages → API client: requests admin actions
- API client → Authentication API: calls REST API
- API client → Catalog and categories: calls REST API
- API client → Cart operations: calls REST API
- API client → Order operations: calls REST API
- Authentication API → Auth use cases: dispatches to
api/ServiceApi/Api/Controllers/AuthController/AuthController.cs - Auth use cases → User and token store: persists identity
- Authentication API → SMTP email: triggers verification
- Authentication API → User management: serves account requests
- User management → Account use cases: dispatches to
api/ServiceApi/Api/Controllers/UserController/UserController.cs - Account use cases → User and token store: stores account data
- Catalog and categories → Product management: dispatches to
- Product management → PostgreSQL: reads and writes
- Product reviews → Review persistence: persists reviews
- Catalog and categories → Product images: manages product images
- Product images → MinIO object store: stores product files
- Cart operations → Cart use case: dispatches to
api/ServiceApi/Api/Controllers/CartController/CartController.cs - Cart use case → Redis cart: stores cart
- Order operations → Order use case: dispatches to
api/ServiceApi/Api/Controllers/OrderController/OrderController.cs - Order use case → PostgreSQL: stores orders
- Order operations → Payment handling: payment workflow
- Payment handling → PostgreSQL: stores payment data
- Cart and checkout → Address suggestions: requests suggestions
- Address suggestions → Yandex Suggest: queries suggestions
- Product reviews → Product management: uses product domain