How tatvan-24/xbrain-intership-personalized-project works
This repository is an OpenTelemetry microservices demo of an online shop. The principal workflow is browsing products, managing a cart, submitting an order, and receiving shipping and payment-related results; the tree also includes review, recommendation, advertising, currency, and account capabilities. Sampled frontend and service code confirms several local calls, while many service-to-service connections are not shown. Those relationships are omitted rather than inferred from service names or conventional architecture.
Main entry points: Api.gateway.ts Frontend API gateway · rpc RPC gateways · ProductReviews.tsx Reviews UI · pages Shop frontend
Components 29
Shop experience
- Shop frontend
source/techx-corp-platform/src/frontend/pages - Reviews UI
source/techx-corp-platform/src/frontend/components/ProductReviews/ProductReviews.tsx - Review provider
source/techx-corp-platform/src/frontend/providers/ProductReview.provider.tsx - AI assistant provider
source/techx-corp-platform/src/frontend/providers/ProductAIAssistant.provider.tsx - Frontend API gateway
source/techx-corp-platform/src/frontend/gateways/Api.gateway.ts - RPC gateways
source/techx-corp-platform/src/frontend/gateways/rpc - RPC message types
source/techx-corp-platform/src/frontend/protos/demo.ts
Commerce services
- Cart service
source/techx-corp-platform/src/cart/src/services/CartService.cs - Cart store
source/techx-corp-platform/src/cart/src/cartstore/ValkeyCartStore.cs - Checkout service
source/techx-corp-platform/src/checkout/main.go - Payment service
source/techx-corp-platform/src/payment/charge.js - Accounting consumer
source/techx-corp-platform/src/accounting/Consumer.cs - Shipping service
source/techx-corp-platform/src/shipping/src/shipping_service.rs - Quote calculation
source/techx-corp-platform/src/shipping/src/shipping_service/quote.rs - Currency service
source/techx-corp-platform/src/currency/src/server.cpp - Quote service
source/techx-corp-platform/src/quote/app/routes.php
Discovery and support
- Product catalog
source/techx-corp-platform/src/product-catalog/main.go - Product reviews service
source/techx-corp-platform/src/product-reviews/product_reviews_server.py - Reviews database access
source/techx-corp-platform/src/product-reviews/database.py - Recommendations
source/techx-corp-platform/src/recommendation/recommendation_server.py - Advertising service
source/techx-corp-platform/src/ad/src/main/java/oteldemo/AdService.java
Operations and flags
- Fraud detection
source/techx-corp-platform/src/fraud-detection/src/main/kotlin/frauddetection/main.kt - User service
source/techx-corp-platform/src/user-service/main.py - Email service
source/techx-corp-platform/src/email/email_server.rb - AI service
source/techx-corp-platform/src/llm/app.py - Feature flag UI
source/techx-corp-platform/src/flagd-ui/lib/flagd_ui_web/router.ex - Flag storage
source/techx-corp-platform/src/flagd-ui/lib/flagd_ui/storage.ex
Other components
- Shopper
- Valkey
Connections 19
- Shopper → Shop frontend: uses
- Reviews UI → Review provider: uses
source/techx-corp-platform/src/frontend/components/ProductReviews/ProductReviews.tsx - Reviews UI → AI assistant provider: uses
source/techx-corp-platform/src/frontend/components/ProductReviews/ProductReviews.tsx - Review provider → Frontend API gateway: requests reviews
source/techx-corp-platform/src/frontend/providers/ProductReview.provider.tsx - Frontend API gateway → RPC message types: uses message types
source/techx-corp-platform/src/frontend/gateways/Api.gateway.ts - RPC gateways → RPC message types: uses message types
source/techx-corp-platform/src/frontend/gateways/rpc/ProductReview.gateway.ts - Cart service → Cart store: uses store interface
source/techx-corp-platform/src/cart/src/services/CartService.cs - Cart store → Valkey: reads and writes
- Shipping service → Quote calculation: calculates quote
source/techx-corp-platform/src/shipping/src/shipping_service.rs - Product reviews service → Reviews database access: queries database
source/techx-corp-platform/src/product-reviews/product_reviews_server.py - Shop frontend → Frontend API gateway: calls API
- Frontend API gateway → Cart service: routes cart requests
- Frontend API gateway → Checkout service: routes checkout
- Frontend API gateway → Shipping service: requests shipping
- Frontend API gateway → Product catalog: requests products
- RPC gateways → Currency service: calls currency
- RPC gateways → Product catalog: calls catalog
- RPC gateways → Product reviews service: calls reviews
- AI assistant provider → AI service: requests answers