# dhinesh1311/microservices architecture

> Architecture diagram of the GitHub repository dhinesh1311/microservices, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dhinesh1311/microservices
- Repository: https://github.com/dhinesh1311/microservices

## Overview

This is a sample multi-language microservices application: a React UI requests shoe, offer, cart, or wishlist data through a Zuul API gateway, and displays the returned response. The domain services expose simple sample endpoints rather than persistent stores. The README documents the gateway’s proxy role; the sampled UI and cart sources show their request and routing behavior. Gateway-to-service links are documented rather than verified from gateway route configuration, which was not sampled.

Main entry points: [`zuul-api-gateway/src/main/java/com/apigateway/zuul/ZuulApplication.java`](https://github.com/dhinesh1311/microservices/blob/main/zuul-api-gateway/src/main/java/com/apigateway/zuul/ZuulApplication.java) (Zuul Gateway), [`ui-web-app-reactjs/src/components/App.jsx`](https://github.com/dhinesh1311/microservices/blob/main/ui-web-app-reactjs/src/components/App.jsx) (React UI), [`cart-microservice-nodejs/index.js`](https://github.com/dhinesh1311/microservices/blob/main/cart-microservice-nodejs/index.js) (Cart Server), [`cart-microservice-nodejs/src/routes/index.js`](https://github.com/dhinesh1311/microservices/blob/main/cart-microservice-nodejs/src/routes/index.js) (Cart Route Mount)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client UI"]
  node_react_ui["React UI<br/>[App.jsx]"]
end

subgraph group_routing["API Routing"]
  node_zuul["Zuul Gateway"]
end

subgraph group_catalog["Catalog Services"]
  node_shoes["Shoe Endpoints"]
  node_offers["Offer Endpoints"]
end

subgraph group_personal["User Services"]
  node_cart_server["Cart Server<br/>[index.js]"]
  node_cart_routes["Cart Route Mount<br/>[index.js]"]
  node_cart_handlers["Cart Endpoints<br/>[cart.js]"]
  node_wishlist["Wishlist Endpoints<br/>[index.py]"]
end

node_user(("User"))

node_user -->|"uses"| node_react_ui
node_react_ui -->|"requests APIs"| node_zuul
node_zuul -->|"proxies requests"| node_shoes
node_zuul -->|"proxies requests"| node_offers
node_zuul -->|"proxies requests"| node_cart_server
node_zuul -->|"proxies requests"| node_wishlist
node_cart_server -->|"mounts routes"| node_cart_routes
node_cart_routes -->|"registers routes"| node_cart_handlers

click node_react_ui "https://github.com/dhinesh1311/microservices/blob/main/ui-web-app-reactjs/src/components/App.jsx"
click node_zuul "https://github.com/dhinesh1311/microservices/blob/main/zuul-api-gateway/src/main/java/com/apigateway/zuul/ZuulApplication.java"
click node_shoes "https://github.com/dhinesh1311/microservices/blob/main/shoes-microservice-spring-boot/src/main/java/com/microservices/shoes/controllers/ShoeController.java"
click node_offers "https://github.com/dhinesh1311/microservices/blob/main/offers-microservice-spring-boot/src/main/java/com/microservices/offers/controllers/OffersController.java"
click node_cart_server "https://github.com/dhinesh1311/microservices/blob/main/cart-microservice-nodejs/index.js"
click node_cart_routes "https://github.com/dhinesh1311/microservices/blob/main/cart-microservice-nodejs/src/routes/index.js"
click node_cart_handlers "https://github.com/dhinesh1311/microservices/blob/main/cart-microservice-nodejs/src/routes/cart/cart.js"
click node_wishlist "https://github.com/dhinesh1311/microservices/blob/main/wishlist-microservice-python/index.py"

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_react_ui,node_user toneBlue
class node_zuul toneAmber
class node_shoes,node_offers toneMint
class node_cart_server,node_cart_routes,node_cart_handlers,node_wishlist toneRose
```

## Components

### Client UI

- [React UI](https://github.com/dhinesh1311/microservices/blob/main/ui-web-app-reactjs/src/components/App.jsx): `ui-web-app-reactjs/src/components/App.jsx`

### API Routing

- [Zuul Gateway](https://github.com/dhinesh1311/microservices/blob/main/zuul-api-gateway/src/main/java/com/apigateway/zuul/ZuulApplication.java): `zuul-api-gateway/src/main/java/com/apigateway/zuul/ZuulApplication.java`

### Catalog Services

- [Shoe Endpoints](https://github.com/dhinesh1311/microservices/blob/main/shoes-microservice-spring-boot/src/main/java/com/microservices/shoes/controllers/ShoeController.java): `shoes-microservice-spring-boot/src/main/java/com/microservices/shoes/controllers/ShoeController.java`
- [Offer Endpoints](https://github.com/dhinesh1311/microservices/blob/main/offers-microservice-spring-boot/src/main/java/com/microservices/offers/controllers/OffersController.java): `offers-microservice-spring-boot/src/main/java/com/microservices/offers/controllers/OffersController.java`

### User Services

- [Cart Server](https://github.com/dhinesh1311/microservices/blob/main/cart-microservice-nodejs/index.js): `cart-microservice-nodejs/index.js`
- [Cart Route Mount](https://github.com/dhinesh1311/microservices/blob/main/cart-microservice-nodejs/src/routes/index.js): `cart-microservice-nodejs/src/routes/index.js`
- [Cart Endpoints](https://github.com/dhinesh1311/microservices/blob/main/cart-microservice-nodejs/src/routes/cart/cart.js): `cart-microservice-nodejs/src/routes/cart/cart.js`
- [Wishlist Endpoints](https://github.com/dhinesh1311/microservices/blob/main/wishlist-microservice-python/index.py): `wishlist-microservice-python/index.py`

### Other components

- **User**

## Connections

- User → React UI: uses (evidence: `ui-web-app-reactjs/src/components/App.jsx`)
- React UI → Zuul Gateway: requests APIs (evidence: `ui-web-app-reactjs/src/components/App.jsx`)
- Zuul Gateway → Shoe Endpoints: proxies requests (evidence: `README.md`)
- Zuul Gateway → Offer Endpoints: proxies requests (evidence: `README.md`)
- Zuul Gateway → Cart Server: proxies requests (evidence: `README.md`)
- Zuul Gateway → Wishlist Endpoints: proxies requests (evidence: `README.md`)
- Cart Server → Cart Route Mount: mounts routes (evidence: `cart-microservice-nodejs/index.js`)
- Cart Route Mount → Cart Endpoints: registers routes (evidence: `cart-microservice-nodejs/src/routes/index.js`)
