# manjuram07/e-commerce-platform architecture

> Architecture diagram of the GitHub repository manjuram07/e-commerce-platform, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/manjuram07/e-commerce-platform
- Repository: https://github.com/manjuram07/e-commerce-platform

## Overview

e-Kart is a Spring Boot e-commerce microservices platform. The documented client workflow enters through the API Gateway, which routes requests to authentication, customer, product, cart, and payment services; service-owned data remains separate. The available excerpts show authentication handling and a payment-to-customer order-status HTTP call, while most cross-service wiring and business implementations are unsampled. Dashed links indicate documented capabilities or unverified integrations where no source-level call was shown.

Main entry points: [`API-Gateway-Service/src/main/java/com/infy/ekart/gateway/ekartgateway/EkartGatewayApplication.java`](https://github.com/manjuram07/e-commerce-platform/blob/main/API-Gateway-Service/src/main/java/com/infy/ekart/gateway/ekartgateway/EkartGatewayApplication.java) (API Gateway), [`Auth-service/src/main/java/com/ekart/controller/AuthController.java`](https://github.com/manjuram07/e-commerce-platform/blob/main/Auth-service/src/main/java/com/ekart/controller/AuthController.java) (Authentication API), [`Auth-service/src/main/java/com/ekart/service/AuthenticationService.java`](https://github.com/manjuram07/e-commerce-platform/blob/main/Auth-service/src/main/java/com/ekart/service/AuthenticationService.java) (Authentication service), [`Cart-Service/src/main/java/com/infy/ekart/cart/service/CustomerCartServiceImpl.java`](https://github.com/manjuram07/e-commerce-platform/blob/main/Cart-Service/src/main/java/com/infy/ekart/cart/service/CustomerCartServiceImpl.java) (Cart management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_edge["Entry and identity"]
  node_gateway["API Gateway"]
  node_auth_api["Authentication API"]
  node_auth_logic["Authentication service"]
  node_auth_security["JWT and user security<br/>[JwtService.java]"]
end

subgraph group_commerce["Commerce services"]
  node_customer_api["Customer API<br/>[CustomerAPI.java]"]
  node_customer_service["Customer profiles"]
  node_product_api["Product API"]
  node_product_service["Catalog and inventory"]
  node_cart_api["Cart API"]
  node_cart_service["Cart management"]
end

subgraph group_fulfillment["Orders and payments"]
  node_order_api["Order API<br/>[OrderAPI.java]"]
  node_order_service["Order lifecycle<br/>[OrderService.java]"]
  node_payment_api["Payment API<br/>[PaymentAPI.java]"]
  node_payment_service["Payment processing"]
  node_payment_status["Payment resilience"]
end

subgraph group_data["Service-owned data"]
  node_auth_users[("Users and roles<br/>[User.java]")]
  node_customer_data[("Customer records<br/>[Customer.java]")]
  node_product_data[("Product records<br/>[Product.java]")]
  node_cart_data[("Cart records<br/>[CustomerCart.java]")]
  node_order_data[("Order records<br/>[Order.java]")]
  node_payment_data[("Payment transactions<br/>[Transaction.java]")]
end

node_client(("Web or mobile client"))

node_client -->|"sends requests"| node_gateway
node_gateway -.->|"routes requests"| node_auth_api
node_gateway -.->|"routes requests"| node_customer_api
node_gateway -.->|"routes requests"| node_product_api
node_gateway -.->|"routes requests"| node_cart_api
node_gateway -.->|"routes requests"| node_payment_api
node_auth_api -->|"delegates"| node_auth_logic
node_auth_logic -->|"reads and saves"| node_auth_users
node_auth_logic -->|"generates tokens"| node_auth_security
node_auth_api -->|"generates tokens"| node_auth_security
node_customer_api -.->|"delegates"| node_customer_service
node_customer_service -.->|"manages profiles"| node_customer_data
node_product_api -.->|"delegates"| node_product_service
node_product_service -.->|"manages catalog"| node_product_data
node_cart_api -.->|"delegates"| node_cart_service
node_cart_service -.->|"reads and writes"| node_cart_data
node_cart_service -.->|"validates availability"| node_product_service
node_order_api -.->|"delegates"| node_order_service
node_order_service -.->|"manages orders"| node_order_data
node_payment_api -.->|"delegates"| node_payment_service
node_payment_service -.->|"tracks transactions"| node_payment_data
node_payment_status -->|"updates order status"| node_order_api

click node_gateway "https://github.com/manjuram07/e-commerce-platform/blob/main/API-Gateway-Service/src/main/java/com/infy/ekart/gateway/ekartgateway/EkartGatewayApplication.java"
click node_auth_api "https://github.com/manjuram07/e-commerce-platform/blob/main/Auth-service/src/main/java/com/ekart/controller/AuthController.java"
click node_auth_logic "https://github.com/manjuram07/e-commerce-platform/blob/main/Auth-service/src/main/java/com/ekart/service/AuthenticationService.java"
click node_auth_security "https://github.com/manjuram07/e-commerce-platform/blob/main/Auth-service/src/main/java/com/ekart/security/JwtService.java"
click node_auth_users "https://github.com/manjuram07/e-commerce-platform/blob/main/Auth-service/src/main/java/com/ekart/entity/User.java"
click node_customer_api "https://github.com/manjuram07/e-commerce-platform/blob/main/Customer-Service/src/main/java/com/infy/ekart/customer/api/CustomerAPI.java"
click node_customer_service "https://github.com/manjuram07/e-commerce-platform/blob/main/Customer-Service/src/main/java/com/infy/ekart/customer/service/CustomerService.java"
click node_customer_data "https://github.com/manjuram07/e-commerce-platform/blob/main/Customer-Service/src/main/java/com/infy/ekart/customer/entity/Customer.java"
click node_product_api "https://github.com/manjuram07/e-commerce-platform/blob/main/Product-Service/src/main/java/com/infy/ekart/product/api/CustomerProductAPI.java"
click node_product_service "https://github.com/manjuram07/e-commerce-platform/blob/main/Product-Service/src/main/java/com/infy/ekart/product/service/CustomerProductService.java"
click node_product_data "https://github.com/manjuram07/e-commerce-platform/blob/main/Product-Service/src/main/java/com/infy/ekart/product/entity/Product.java"
click node_cart_api "https://github.com/manjuram07/e-commerce-platform/blob/main/Cart-Service/src/main/java/com/infy/ekart/cart/api/CustomerCartAPI.java"
click node_cart_service "https://github.com/manjuram07/e-commerce-platform/blob/main/Cart-Service/src/main/java/com/infy/ekart/cart/service/CustomerCartServiceImpl.java"
click node_cart_data "https://github.com/manjuram07/e-commerce-platform/blob/main/Cart-Service/src/main/java/com/infy/ekart/cart/entity/CustomerCart.java"
click node_order_api "https://github.com/manjuram07/e-commerce-platform/blob/main/Customer-Service/src/main/java/com/infy/ekart/customer/api/OrderAPI.java"
click node_order_service "https://github.com/manjuram07/e-commerce-platform/blob/main/Customer-Service/src/main/java/com/infy/ekart/customer/service/OrderService.java"
click node_order_data "https://github.com/manjuram07/e-commerce-platform/blob/main/Customer-Service/src/main/java/com/infy/ekart/customer/entity/Order.java"
click node_payment_api "https://github.com/manjuram07/e-commerce-platform/blob/main/Payment-Service/src/main/java/com/infy/ekart/payment/api/PaymentAPI.java"
click node_payment_service "https://github.com/manjuram07/e-commerce-platform/blob/main/Payment-Service/src/main/java/com/infy/ekart/payment/service/PaymentService.java"
click node_payment_status "https://github.com/manjuram07/e-commerce-platform/blob/main/Payment-Service/src/main/java/com/infy/ekart/payment/service/PaymentCircuitBreakerService.java"
click node_payment_data "https://github.com/manjuram07/e-commerce-platform/blob/main/Payment-Service/src/main/java/com/infy/ekart/payment/entity/Transaction.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_gateway,node_auth_api,node_auth_logic,node_auth_security,node_client toneBlue
class node_customer_api,node_customer_service,node_product_api,node_product_service,node_cart_api,node_cart_service toneAmber
class node_order_api,node_order_service,node_payment_api,node_payment_service,node_payment_status toneMint
class node_auth_users,node_customer_data,node_product_data,node_cart_data,node_order_data,node_payment_data toneRose
```

## Components

### Entry and identity

- [API Gateway](https://github.com/manjuram07/e-commerce-platform/blob/main/API-Gateway-Service/src/main/java/com/infy/ekart/gateway/ekartgateway/EkartGatewayApplication.java): `API-Gateway-Service/src/main/java/com/infy/ekart/gateway/ekartgateway/EkartGatewayApplication.java`
- [Authentication API](https://github.com/manjuram07/e-commerce-platform/blob/main/Auth-service/src/main/java/com/ekart/controller/AuthController.java): `Auth-service/src/main/java/com/ekart/controller/AuthController.java`
- [Authentication service](https://github.com/manjuram07/e-commerce-platform/blob/main/Auth-service/src/main/java/com/ekart/service/AuthenticationService.java): `Auth-service/src/main/java/com/ekart/service/AuthenticationService.java`
- [JWT and user security](https://github.com/manjuram07/e-commerce-platform/blob/main/Auth-service/src/main/java/com/ekart/security/JwtService.java): `Auth-service/src/main/java/com/ekart/security/JwtService.java`

### Commerce services

- [Customer API](https://github.com/manjuram07/e-commerce-platform/blob/main/Customer-Service/src/main/java/com/infy/ekart/customer/api/CustomerAPI.java): `Customer-Service/src/main/java/com/infy/ekart/customer/api/CustomerAPI.java`
- [Customer profiles](https://github.com/manjuram07/e-commerce-platform/blob/main/Customer-Service/src/main/java/com/infy/ekart/customer/service/CustomerService.java): `Customer-Service/src/main/java/com/infy/ekart/customer/service/CustomerService.java`
- [Product API](https://github.com/manjuram07/e-commerce-platform/blob/main/Product-Service/src/main/java/com/infy/ekart/product/api/CustomerProductAPI.java): `Product-Service/src/main/java/com/infy/ekart/product/api/CustomerProductAPI.java`
- [Catalog and inventory](https://github.com/manjuram07/e-commerce-platform/blob/main/Product-Service/src/main/java/com/infy/ekart/product/service/CustomerProductService.java): `Product-Service/src/main/java/com/infy/ekart/product/service/CustomerProductService.java`
- [Cart API](https://github.com/manjuram07/e-commerce-platform/blob/main/Cart-Service/src/main/java/com/infy/ekart/cart/api/CustomerCartAPI.java): `Cart-Service/src/main/java/com/infy/ekart/cart/api/CustomerCartAPI.java`
- [Cart management](https://github.com/manjuram07/e-commerce-platform/blob/main/Cart-Service/src/main/java/com/infy/ekart/cart/service/CustomerCartServiceImpl.java): `Cart-Service/src/main/java/com/infy/ekart/cart/service/CustomerCartServiceImpl.java`

### Orders and payments

- [Order API](https://github.com/manjuram07/e-commerce-platform/blob/main/Customer-Service/src/main/java/com/infy/ekart/customer/api/OrderAPI.java): `Customer-Service/src/main/java/com/infy/ekart/customer/api/OrderAPI.java`
- [Order lifecycle](https://github.com/manjuram07/e-commerce-platform/blob/main/Customer-Service/src/main/java/com/infy/ekart/customer/service/OrderService.java): `Customer-Service/src/main/java/com/infy/ekart/customer/service/OrderService.java`
- [Payment API](https://github.com/manjuram07/e-commerce-platform/blob/main/Payment-Service/src/main/java/com/infy/ekart/payment/api/PaymentAPI.java): `Payment-Service/src/main/java/com/infy/ekart/payment/api/PaymentAPI.java`
- [Payment processing](https://github.com/manjuram07/e-commerce-platform/blob/main/Payment-Service/src/main/java/com/infy/ekart/payment/service/PaymentService.java): `Payment-Service/src/main/java/com/infy/ekart/payment/service/PaymentService.java`
- [Payment resilience](https://github.com/manjuram07/e-commerce-platform/blob/main/Payment-Service/src/main/java/com/infy/ekart/payment/service/PaymentCircuitBreakerService.java): `Payment-Service/src/main/java/com/infy/ekart/payment/service/PaymentCircuitBreakerService.java`

### Service-owned data

- [Users and roles](https://github.com/manjuram07/e-commerce-platform/blob/main/Auth-service/src/main/java/com/ekart/entity/User.java): `Auth-service/src/main/java/com/ekart/entity/User.java`
- [Customer records](https://github.com/manjuram07/e-commerce-platform/blob/main/Customer-Service/src/main/java/com/infy/ekart/customer/entity/Customer.java): `Customer-Service/src/main/java/com/infy/ekart/customer/entity/Customer.java`
- [Product records](https://github.com/manjuram07/e-commerce-platform/blob/main/Product-Service/src/main/java/com/infy/ekart/product/entity/Product.java): `Product-Service/src/main/java/com/infy/ekart/product/entity/Product.java`
- [Cart records](https://github.com/manjuram07/e-commerce-platform/blob/main/Cart-Service/src/main/java/com/infy/ekart/cart/entity/CustomerCart.java): `Cart-Service/src/main/java/com/infy/ekart/cart/entity/CustomerCart.java`
- [Order records](https://github.com/manjuram07/e-commerce-platform/blob/main/Customer-Service/src/main/java/com/infy/ekart/customer/entity/Order.java): `Customer-Service/src/main/java/com/infy/ekart/customer/entity/Order.java`
- [Payment transactions](https://github.com/manjuram07/e-commerce-platform/blob/main/Payment-Service/src/main/java/com/infy/ekart/payment/entity/Transaction.java): `Payment-Service/src/main/java/com/infy/ekart/payment/entity/Transaction.java`

### Other components

- **Web or mobile client**

## Connections

- Web or mobile client → API Gateway: sends requests (evidence: `README.md`)
- API Gateway → Authentication API: routes requests (evidence: `README.md`)
- API Gateway → Customer API: routes requests (evidence: `README.md`)
- API Gateway → Product API: routes requests (evidence: `README.md`)
- API Gateway → Cart API: routes requests (evidence: `README.md`)
- API Gateway → Payment API: routes requests (evidence: `README.md`)
- Authentication API → Authentication service: delegates (evidence: `Auth-service/src/main/java/com/ekart/controller/AuthController.java`)
- Authentication service → Users and roles: reads and saves (evidence: `Auth-service/src/main/java/com/ekart/service/AuthenticationService.java`)
- Authentication service → JWT and user security: generates tokens (evidence: `Auth-service/src/main/java/com/ekart/service/AuthenticationService.java`)
- Authentication API → JWT and user security: generates tokens (evidence: `Auth-service/src/main/java/com/ekart/controller/AuthController.java`)
- Customer API → Customer profiles: delegates
- Customer profiles → Customer records: manages profiles
- Product API → Catalog and inventory: delegates
- Catalog and inventory → Product records: manages catalog
- Cart API → Cart management: delegates
- Cart management → Cart records: reads and writes (evidence: `Cart-Service/src/main/java/com/infy/ekart/cart/service/CustomerCartServiceImpl.java`)
- Cart management → Catalog and inventory: validates availability (evidence: `README.md`)
- Order API → Order lifecycle: delegates
- Order lifecycle → Order records: manages orders
- Payment API → Payment processing: delegates
- Payment processing → Payment transactions: tracks transactions
- Payment resilience → Order API: updates order status (evidence: `Payment-Service/src/main/java/com/infy/ekart/payment/service/PaymentCircuitBreakerService.java`)
