How mohamedwaleed77/ecommerce_helm_chart works
This is a bilingual e-commerce application: shoppers browse products, authenticate, manage a persistent cart, and check out; administrators manage inventory and users. The backend separates users, products, carts, and orders into Express services with MongoDB models; the frontend provides storefront, checkout, account, and admin views. The README also describes Kubernetes, Helm, and AWS operations, but their implementation files are not present in the supplied tree. Frontend-to-service edges are dashed because the supplied excerpts do not show those network calls.
Main entry points: page.js Product storefront · order.controller.js Order and payment · user.controller.js Account operations · cart.controller.js Cart operations
Components 24
Storefront and UI
- Product storefront
WebAppAlone/frontend/src/app/page.js - Product cards
WebAppAlone/frontend/src/app/components/productcard.js - Bilingual UI
WebAppAlone/frontend/lib/lang.js
Accounts and identity
- Login and signup
WebAppAlone/frontend/src/app/components/Loginform.js - User API routes
WebAppAlone/backend/userService/src/module/user.router.js - Account operations
WebAppAlone/backend/userService/src/module/user.controller.js - User records
WebAppAlone/backend/userService/database/user.model.js - Confirmation mail
WebAppAlone/backend/userService/mailer/send_mail.js - User administration
WebAppAlone/frontend/src/app/usersconfig/page.js
Catalog and cart
- Product API routes
WebAppAlone/backend/productService/src/module/product.router.js - Catalog operations
WebAppAlone/backend/productService/src/module/product.controller.js - Product records
WebAppAlone/backend/productService/database/product.model.js - Inventory admin
WebAppAlone/frontend/src/app/productsconfig/page.js - Cart API routes
WebAppAlone/backend/cartService/src/module/cart.router.js - Cart operations
WebAppAlone/backend/cartService/src/module/cart.controller.js - Cart records
WebAppAlone/backend/cartService/database/cart.model.js
Orders and checkout
- Cart view
WebAppAlone/frontend/src/app/cart/page.js - Checkout form
WebAppAlone/frontend/src/app/cart/checkout.js - Order API routes
WebAppAlone/backend/orderService/src/module/order.router.js - Order and payment
WebAppAlone/backend/orderService/src/module/order.controller.js - Order records
WebAppAlone/backend/orderService/database/order.model.js - Stripe checkout
- Order history
WebAppAlone/frontend/src/app/orders/page.js
Other components
- Shopper
Connections 25
- Shopper → Product storefront: browses
WebAppAlone/frontend/src/app/page.js - Product storefront → Product cards: renders
WebAppAlone/frontend/src/app/page.js - Product storefront → Product API routes: requests catalog
- Product storefront → Bilingual UI: translates labels
WebAppAlone/frontend/src/app/page.js - Shopper → Login and signup: authenticates
WebAppAlone/frontend/src/app/components/Loginform.js - Login and signup → User API routes: submits credentials
- User API routes → Account operations: routes requests
WebAppAlone/backend/userService/src/module/user.router.js - Account operations → User records: reads and writes
WebAppAlone/backend/userService/src/module/user.controller.js - Account operations → Confirmation mail: sends confirmation
WebAppAlone/backend/userService/src/module/user.controller.js - User administration → User API routes: manages accounts
- Product API routes → Catalog operations: routes requests
WebAppAlone/backend/productService/src/module/product.router.js - Catalog operations → Product records: reads and writes
WebAppAlone/backend/productService/src/module/product.controller.js - Inventory admin → Product API routes: manages inventory
- Cart API routes → Cart operations: routes requests
WebAppAlone/backend/cartService/src/module/cart.router.js - Cart operations → Cart records: reads and writes
WebAppAlone/backend/cartService/src/module/cart.controller.js - Cart operations → Product records: updates stock
WebAppAlone/backend/cartService/src/module/cart.controller.js - Shopper → Cart view: manages cart
WebAppAlone/frontend/src/app/cart/page.js - Cart view → Cart API routes: requests cart
- Cart view → Checkout form: opens checkout
WebAppAlone/frontend/src/app/cart/page.js - Checkout form → Order API routes: submits order
- Order API routes → Order and payment: routes requests
WebAppAlone/backend/orderService/src/module/order.router.js - Order and payment → Order records: creates and reads
WebAppAlone/backend/orderService/src/module/order.controller.js - Order and payment → Cart records: loads and clears cart
WebAppAlone/backend/orderService/src/module/order.controller.js - Order and payment → Stripe checkout: creates payment session
WebAppAlone/backend/orderService/src/module/order.controller.js - Order history → Order API routes: requests history