How sriram-1811/kubernetes-ecommerce-platform works
This is a small e-commerce platform: a React storefront calls separate product, user, order, payment, and notification APIs. The principal workflow loads the catalog, collects a user profile and cart, creates orders, records payment status, and creates notifications. The backend services use PostgreSQL connections and SQL; order, payment, and notification services also read related tables directly. The graph reflects the shown frontend calls and backend queries; deployment wiring and unsampled service behavior are not inferred.
Main entry points: api.ts HTTP API Client · Home.tsx Storefront Workflow · ProductCard.tsx Product Card · main.py Product API
Components 13
Storefront
- React App
services/frontend/src/App.tsx - Storefront Workflow
services/frontend/src/pages/Home.tsx - Store Header
services/frontend/src/components/Header.tsx - Product Card
services/frontend/src/components/ProductCard.tsx - HTTP API Client
services/frontend/src/services/api.ts - Commerce Types
services/frontend/src/types/product.ts
Catalog
- Product API
services/product-service/app/main.py
User Accounts
- User API
services/user-service/app/main.py
Orders
- Order API
services/order-service/app/main.py
Payment And Notices
- Payment API
services/payment-service/app/main.py - Notification API
services/notification-service/app/main.py
Other components
- Shopper
- Hunger Store DB
Connections 17
- Shopper → Storefront Workflow: uses
services/frontend/src/pages/Home.tsx - React App → Storefront Workflow: renders
services/frontend/src/App.tsx - Storefront Workflow → Store Header: renders
services/frontend/src/pages/Home.tsx - Storefront Workflow → Product Card: renders
services/frontend/src/pages/Home.tsx - Storefront Workflow → HTTP API Client: calls
services/frontend/src/pages/Home.tsx - Product Card → Commerce Types: uses
services/frontend/src/components/ProductCard.tsx - HTTP API Client → Commerce Types: uses
services/frontend/src/services/api.ts - HTTP API Client → Product API: requests products
services/frontend/src/services/api.ts - HTTP API Client → User API: requests users
services/frontend/src/services/api.ts - HTTP API Client → Order API: requests orders
services/frontend/src/services/api.ts - HTTP API Client → Payment API: requests payments
services/frontend/src/services/api.ts - HTTP API Client → Notification API: requests notices
services/frontend/src/services/api.ts - Product API → Hunger Store DB: reads and writes
services/product-service/app/main.py - User API → Hunger Store DB: reads and writes
services/user-service/app/main.py - Order API → Hunger Store DB: reads and writes
services/order-service/app/main.py - Payment API → Hunger Store DB: reads and writes
services/payment-service/app/main.py - Notification API → Hunger Store DB: reads and writes
services/notification-service/app/main.py