# praveenyadav1107/harness architecture

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

- Interactive diagram: https://gitdiagram.com/praveenyadav1107/harness
- Repository: https://github.com/praveenyadav1107/harness

## Overview

This repository is a Harness CI/CD learning course containing independent application examples, rather than one integrated runtime product. The clearest sampled user workflow is the Episode 08 shopping app: users navigate products, authenticate, and manage a basket through the frontend; its backend exposes authentication, product, and order routes. Other substantial examples include a Laravel shop, the Episode 10 microservice demo, AI-assisted code review, and GoCart storefronts. The graph preserves these distinct branches. Several implementations are unsampled, so their internal links are omitted; the README describes course topics, not runtime wiring.

Main entry points: [`Episode-08/mobile ecommerce app/frontend/src/App.js`](https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/frontend/src/App.js) (App routes), [`Episode-08/mobile ecommerce app/backend/src/routes/index.js`](https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/backend/src/routes/index.js) (Route dispatch), [`Episode-09/shop ecommerce app/app/Http/Controllers/HomeController.php`](https://github.com/praveenyadav1107/harness/blob/master/Episode-09/shop%20ecommerce%20app/app/Http/Controllers/HomeController.php) (Shop controller), [`Episode-08/mobile ecommerce app/backend/src/app.js`](https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/backend/src/app.js) (Express app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mobile["Mobile ecommerce"]
  node_mobile_app["App routes<br/>[App.js]"]
  node_mobile_auth["Auth screens<br/>[index.js]"]
  node_mobile_products["Product screens<br/>[New.js]"]
  node_mobile_basket["Basket page<br/>[index.js]"]
  node_mobile_api["Frontend API<br/>[api.js]"]
  node_mobile_state["Auth and basket state<br/>[AuthContext.js]"]
  node_backend_app["Express app<br/>[app.js]"]
  node_backend_routes["Route dispatch<br/>[index.js]"]
  node_auth_routes["Auth routes<br/>[auth.js]"]
  node_product_routes["Product routes<br/>[product.js]"]
  node_order_routes["Order routes<br/>[order.js]"]
  node_db_client["Database client<br/>[db.js]"]
  node_database[("Application database")]
end

subgraph group_laravel["Laravel shop"]
  node_laravel_home["Shop controller<br/>[HomeController.php]"]
  node_laravel_views["Shop pages"]
  node_laravel_models["Shop models"]
  node_laravel_routes["Web routes<br/>[web.php]"]
end

subgraph group_microservices["Commerce microservices"]
  node_micro_frontend["Web storefront<br/>[handlers.go]"]
  node_checkout["Checkout service<br/>[main.go]"]
  node_catalog["Product catalog<br/>[server.go]"]
  node_currency["Currency service<br/>[server.js]"]
  node_shipping["Shipping service<br/>[main.go]"]
  node_payment["Payment service<br/>[server.js]"]
end

subgraph group_agents["AI agents"]
  node_review_agent["Code review agent"]
  node_ai_provider["AI provider<br/>[ai_provider.py]"]
  node_risk_agent["Deployment risk agent"]
  node_log_agent["Log analysis agent"]
  node_release_agent["Release notes agent"]
  node_security_agent["Security agent<br/>[security_agent.py]"]
end

subgraph group_gocart["GoCart storefront"]
  node_gocart_public["Public storefront<br/>[page.jsx]"]
  node_gocart_admin["Admin portal<br/>[page.jsx]"]
  node_gocart_store["Store portal<br/>[page.jsx]"]
  node_gocart_state["Commerce state<br/>[cartSlice.js]"]
end

node_shopper(("Shopper"))

node_shopper -->|"uses"| node_mobile_app
node_mobile_app -->|"routes to"| node_mobile_auth
node_mobile_app -->|"routes to"| node_mobile_products
node_mobile_app -->|"routes to"| node_mobile_basket
node_mobile_auth -->|"calls"| node_mobile_api
node_mobile_basket -->|"calls"| node_mobile_api
node_mobile_api -.->|"HTTP requests"| node_backend_app
node_backend_app -->|"mounts"| node_backend_routes
node_backend_routes -->|"dispatches"| node_auth_routes
node_backend_routes -->|"dispatches"| node_product_routes
node_backend_routes -->|"dispatches"| node_order_routes
node_backend_app -->|"loads"| node_db_client
node_db_client -.->|"connects"| node_database
node_laravel_routes -.->|"routes requests"| node_laravel_home
node_laravel_home -->|"queries"| node_laravel_models
node_laravel_home -->|"renders"| node_laravel_views
node_laravel_home -->|"reads and writes"| node_laravel_models
node_review_agent -->|"requests response"| node_ai_provider
node_shopper -.->|"browses"| node_gocart_public
node_gocart_public -.->|"uses state"| node_gocart_state
node_gocart_admin -.->|"uses state"| node_gocart_state
node_gocart_store -.->|"uses state"| node_gocart_state

click node_mobile_app "https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/frontend/src/App.js"
click node_mobile_auth "https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/frontend/src/pages/Auth/Signin/index.js"
click node_mobile_products "https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/frontend/src/pages/Products/New.js"
click node_mobile_basket "https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/frontend/src/pages/Basket/index.js"
click node_mobile_api "https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/frontend/src/api.js"
click node_mobile_state "https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/frontend/src/contexts/AuthContext.js"
click node_backend_app "https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/backend/src/app.js"
click node_backend_routes "https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/backend/src/routes/index.js"
click node_auth_routes "https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/backend/src/routes/auth.js"
click node_product_routes "https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/backend/src/routes/product.js"
click node_order_routes "https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/backend/src/routes/order.js"
click node_db_client "https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/backend/src/clients/db.js"
click node_laravel_home "https://github.com/praveenyadav1107/harness/blob/master/Episode-09/shop%20ecommerce%20app/app/Http/Controllers/HomeController.php"
click node_laravel_views "https://github.com/praveenyadav1107/harness/tree/master/Episode-09/shop%20ecommerce%20app/resources/views/user"
click node_laravel_models "https://github.com/praveenyadav1107/harness/tree/master/Episode-09/shop%20ecommerce%20app/app/Models"
click node_laravel_routes "https://github.com/praveenyadav1107/harness/blob/master/Episode-09/shop%20ecommerce%20app/routes/web.php"
click node_micro_frontend "https://github.com/praveenyadav1107/harness/blob/master/Episode-10/src/frontend/handlers.go"
click node_checkout "https://github.com/praveenyadav1107/harness/blob/master/Episode-10/src/checkoutservice/main.go"
click node_catalog "https://github.com/praveenyadav1107/harness/blob/master/Episode-10/src/productcatalogservice/server.go"
click node_currency "https://github.com/praveenyadav1107/harness/blob/master/Episode-10/src/currencyservice/server.js"
click node_shipping "https://github.com/praveenyadav1107/harness/blob/master/Episode-10/src/shippingservice/main.go"
click node_payment "https://github.com/praveenyadav1107/harness/blob/master/Episode-10/src/paymentservice/server.js"
click node_review_agent "https://github.com/praveenyadav1107/harness/blob/master/Episode-10/ai-agents/code_review_agent.py"
click node_ai_provider "https://github.com/praveenyadav1107/harness/blob/master/Episode-10/ai-agents/ai_provider.py"
click node_risk_agent "https://github.com/praveenyadav1107/harness/blob/master/Episode-10/ai-agents/deployment_risk_agent.py"
click node_log_agent "https://github.com/praveenyadav1107/harness/blob/master/Episode-10/ai-agents/log_analysis_agent.py"
click node_release_agent "https://github.com/praveenyadav1107/harness/blob/master/Episode-10/ai-agents/release_notes_agent.py"
click node_security_agent "https://github.com/praveenyadav1107/harness/blob/master/Episode-10/ai-agents/security_agent.py"
click node_gocart_public "https://github.com/praveenyadav1107/harness/blob/master/Episode-06/gocart/app/(public)/page.jsx"
click node_gocart_admin "https://github.com/praveenyadav1107/harness/blob/master/Episode-06/gocart/app/admin/page.jsx"
click node_gocart_store "https://github.com/praveenyadav1107/harness/blob/master/Episode-06/gocart/app/store/page.jsx"
click node_gocart_state "https://github.com/praveenyadav1107/harness/blob/master/Episode-06/gocart/lib/features/cart/cartSlice.js"

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_mobile_app,node_mobile_auth,node_mobile_products,node_mobile_basket,node_mobile_api,node_mobile_state,node_backend_app,node_backend_routes,node_auth_routes,node_product_routes,node_order_routes,node_db_client,node_database toneBlue
class node_laravel_home,node_laravel_views,node_laravel_models,node_laravel_routes toneAmber
class node_micro_frontend,node_checkout,node_catalog,node_currency,node_shipping,node_payment toneMint
class node_review_agent,node_ai_provider,node_risk_agent,node_log_agent,node_release_agent,node_security_agent toneRose
class node_gocart_public,node_gocart_admin,node_gocart_store,node_gocart_state,node_shopper toneIndigo
```

## Components

### Mobile ecommerce

- [App routes](https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/frontend/src/App.js): `Episode-08/mobile ecommerce app/frontend/src/App.js`
- [Auth screens](https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/frontend/src/pages/Auth/Signin/index.js): `Episode-08/mobile ecommerce app/frontend/src/pages/Auth/Signin/index.js`
- [Product screens](https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/frontend/src/pages/Products/New.js): `Episode-08/mobile ecommerce app/frontend/src/pages/Products/New.js`
- [Basket page](https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/frontend/src/pages/Basket/index.js): `Episode-08/mobile ecommerce app/frontend/src/pages/Basket/index.js`
- [Frontend API](https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/frontend/src/api.js): `Episode-08/mobile ecommerce app/frontend/src/api.js`
- [Auth and basket state](https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/frontend/src/contexts/AuthContext.js): `Episode-08/mobile ecommerce app/frontend/src/contexts/AuthContext.js`
- [Express app](https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/backend/src/app.js): `Episode-08/mobile ecommerce app/backend/src/app.js`
- [Route dispatch](https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/backend/src/routes/index.js): `Episode-08/mobile ecommerce app/backend/src/routes/index.js`
- [Auth routes](https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/backend/src/routes/auth.js): `Episode-08/mobile ecommerce app/backend/src/routes/auth.js`
- [Product routes](https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/backend/src/routes/product.js): `Episode-08/mobile ecommerce app/backend/src/routes/product.js`
- [Order routes](https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/backend/src/routes/order.js): `Episode-08/mobile ecommerce app/backend/src/routes/order.js`
- [Database client](https://github.com/praveenyadav1107/harness/blob/master/Episode-08/mobile%20ecommerce%20app/backend/src/clients/db.js): `Episode-08/mobile ecommerce app/backend/src/clients/db.js`
- **Application database**

### Laravel shop

- [Shop controller](https://github.com/praveenyadav1107/harness/blob/master/Episode-09/shop%20ecommerce%20app/app/Http/Controllers/HomeController.php): `Episode-09/shop ecommerce app/app/Http/Controllers/HomeController.php`
- [Shop pages](https://github.com/praveenyadav1107/harness/tree/master/Episode-09/shop%20ecommerce%20app/resources/views/user): `Episode-09/shop ecommerce app/resources/views/user`
- [Shop models](https://github.com/praveenyadav1107/harness/tree/master/Episode-09/shop%20ecommerce%20app/app/Models): `Episode-09/shop ecommerce app/app/Models`
- [Web routes](https://github.com/praveenyadav1107/harness/blob/master/Episode-09/shop%20ecommerce%20app/routes/web.php): `Episode-09/shop ecommerce app/routes/web.php`

### Commerce microservices

- [Web storefront](https://github.com/praveenyadav1107/harness/blob/master/Episode-10/src/frontend/handlers.go): `Episode-10/src/frontend/handlers.go`
- [Checkout service](https://github.com/praveenyadav1107/harness/blob/master/Episode-10/src/checkoutservice/main.go): `Episode-10/src/checkoutservice/main.go`
- [Product catalog](https://github.com/praveenyadav1107/harness/blob/master/Episode-10/src/productcatalogservice/server.go): `Episode-10/src/productcatalogservice/server.go`
- [Currency service](https://github.com/praveenyadav1107/harness/blob/master/Episode-10/src/currencyservice/server.js): `Episode-10/src/currencyservice/server.js`
- [Shipping service](https://github.com/praveenyadav1107/harness/blob/master/Episode-10/src/shippingservice/main.go): `Episode-10/src/shippingservice/main.go`
- [Payment service](https://github.com/praveenyadav1107/harness/blob/master/Episode-10/src/paymentservice/server.js): `Episode-10/src/paymentservice/server.js`

### AI agents

- [Code review agent](https://github.com/praveenyadav1107/harness/blob/master/Episode-10/ai-agents/code_review_agent.py): `Episode-10/ai-agents/code_review_agent.py`
- [AI provider](https://github.com/praveenyadav1107/harness/blob/master/Episode-10/ai-agents/ai_provider.py): `Episode-10/ai-agents/ai_provider.py`
- [Deployment risk agent](https://github.com/praveenyadav1107/harness/blob/master/Episode-10/ai-agents/deployment_risk_agent.py): `Episode-10/ai-agents/deployment_risk_agent.py`
- [Log analysis agent](https://github.com/praveenyadav1107/harness/blob/master/Episode-10/ai-agents/log_analysis_agent.py): `Episode-10/ai-agents/log_analysis_agent.py`
- [Release notes agent](https://github.com/praveenyadav1107/harness/blob/master/Episode-10/ai-agents/release_notes_agent.py): `Episode-10/ai-agents/release_notes_agent.py`
- [Security agent](https://github.com/praveenyadav1107/harness/blob/master/Episode-10/ai-agents/security_agent.py): `Episode-10/ai-agents/security_agent.py`

### GoCart storefront

- [Public storefront](https://github.com/praveenyadav1107/harness/blob/master/Episode-06/gocart/app/(public)/page.jsx): `Episode-06/gocart/app/(public)/page.jsx`
- [Admin portal](https://github.com/praveenyadav1107/harness/blob/master/Episode-06/gocart/app/admin/page.jsx): `Episode-06/gocart/app/admin/page.jsx`
- [Store portal](https://github.com/praveenyadav1107/harness/blob/master/Episode-06/gocart/app/store/page.jsx): `Episode-06/gocart/app/store/page.jsx`
- [Commerce state](https://github.com/praveenyadav1107/harness/blob/master/Episode-06/gocart/lib/features/cart/cartSlice.js): `Episode-06/gocart/lib/features/cart/cartSlice.js`

### Other components

- **Shopper**

## Connections

- Shopper → App routes: uses (evidence: `Episode-08/mobile ecommerce app/frontend/src/App.js`)
- App routes → Auth screens: routes to (evidence: `Episode-08/mobile ecommerce app/frontend/src/App.js`)
- App routes → Product screens: routes to (evidence: `Episode-08/mobile ecommerce app/frontend/src/App.js`)
- App routes → Basket page: routes to (evidence: `Episode-08/mobile ecommerce app/frontend/src/App.js`)
- Auth screens → Frontend API: calls (evidence: `Episode-08/mobile ecommerce app/frontend/src/pages/Auth/Signin/index.js`)
- Basket page → Frontend API: calls (evidence: `Episode-08/mobile ecommerce app/frontend/src/pages/Basket/index.js`)
- Frontend API → Express app: HTTP requests
- Express app → Route dispatch: mounts (evidence: `Episode-08/mobile ecommerce app/backend/src/app.js`)
- Route dispatch → Auth routes: dispatches (evidence: `Episode-08/mobile ecommerce app/backend/src/routes/index.js`)
- Route dispatch → Product routes: dispatches (evidence: `Episode-08/mobile ecommerce app/backend/src/routes/index.js`)
- Route dispatch → Order routes: dispatches (evidence: `Episode-08/mobile ecommerce app/backend/src/routes/index.js`)
- Express app → Database client: loads (evidence: `Episode-08/mobile ecommerce app/backend/src/app.js`)
- Database client → Application database: connects
- Web routes → Shop controller: routes requests
- Shop controller → Shop models: queries (evidence: `Episode-09/shop ecommerce app/app/Http/Controllers/HomeController.php`)
- Shop controller → Shop pages: renders (evidence: `Episode-09/shop ecommerce app/app/Http/Controllers/HomeController.php`)
- Shop controller → Shop models: reads and writes (evidence: `Episode-09/shop ecommerce app/app/Http/Controllers/HomeController.php`)
- Code review agent → AI provider: requests response (evidence: `Episode-10/ai-agents/code_review_agent.py`)
- Shopper → Public storefront: browses
- Public storefront → Commerce state: uses state
- Admin portal → Commerce state: uses state
- Store portal → Commerce state: uses state
