# shubhamm63/azure-fullstack-devops architecture

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

- Interactive diagram: https://gitdiagram.com/shubhamm63/azure-fullstack-devops
- Repository: https://github.com/shubhamm63/azure-fullstack-devops

## Overview

This is a React/Node user-directory application paired with Azure deployment infrastructure. Users browse a paginated list, select a user, and view that user’s details; the React pages call Express endpoints, which query users through Prisma and PostgreSQL. The README also documents Azure networking and hosting, container image storage, CI/CD, and monitoring. Those deployment relationships are represented from the README; infrastructure source files were not sampled, so their internal wiring is not inferred.

Main entry points: [`terraform/appservice.tf`](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/appservice.tf) (Backend App Service), [`server/src/app.js`](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/server/src/app.js) (Express API), [`terraform/monitoring.tf`](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/monitoring.tf) (Azure monitoring), [`server/prisma/schema.prisma`](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/server/prisma/schema.prisma) (PostgreSQL)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web client"]
  node_bootstrap["React bootstrap<br/>[main.jsx]"]
  node_routes["Client routes<br/>[App.jsx]"]
  node_directory["User directory<br/>[index.jsx]"]
  node_detail["User detail<br/>[index.jsx]"]
end

subgraph group_api["User API"]
  node_api["Express API<br/>[app.js]"]
  node_httpcodes["HTTP status codes<br/>[httpStatus.js]"]
  node_prisma["Prisma client<br/>[database.js]"]
  node_postgres[("PostgreSQL<br/>[schema.prisma]")]
  node_seed["User seed data<br/>[seed.js]"]
end

subgraph group_azure["Azure platform"]
  node_gateway["Application Gateway<br/>[appgateway.tf]"]
  node_network["Private network<br/>[network.tf]"]
  node_frontend["Frontend App Service<br/>[appservice.tf]"]
  node_backend["Backend App Service<br/>[appservice.tf]"]
  node_registry["Container Registry<br/>[acr.tf]"]
end

subgraph group_delivery["Delivery and monitoring"]
  node_monitoring["Azure monitoring<br/>[monitoring.tf]"]
  node_pipeline["CI/CD workflow<br/>[ci-cd.yml]"]
  node_insights["Application Insights<br/>[monitoring.tf]"]
  node_logs["Log Analytics<br/>[monitoring.tf]"]
end

node_visitor(("Application user"))

node_visitor -->|"opens app"| node_bootstrap
node_bootstrap -->|"renders"| node_routes
node_routes -->|"routes to"| node_directory
node_routes -->|"routes to"| node_detail
node_visitor -->|"browses users"| node_directory
node_directory -->|"fetches list"| node_api
node_visitor -->|"selects user"| node_detail
node_detail -->|"fetches user"| node_api
node_api -->|"queries users"| node_prisma
node_api -->|"uses status codes"| node_httpcodes
node_prisma -->|"accesses database"| node_postgres
node_seed -->|"seeds users"| node_postgres
node_visitor -->|"enters platform"| node_gateway
node_gateway -->|"routes traffic"| node_frontend
node_frontend -->|"calls API"| node_backend
node_backend -->|"connects privately"| node_postgres
node_network -->|"provides private access"| node_postgres
node_network -->|"hosts privately"| node_backend
node_pipeline -->|"pushes images"| node_registry
node_pipeline -->|"deploys app"| node_frontend
node_pipeline -->|"deploys app"| node_backend
node_monitoring -->|"uses"| node_insights
node_monitoring -->|"uses"| node_logs
node_frontend -->|"emits metrics"| node_monitoring
node_backend -->|"emits metrics"| node_monitoring

click node_bootstrap "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/client/src/main.jsx"
click node_routes "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/client/src/App.jsx"
click node_directory "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/client/src/pages/Home/index.jsx"
click node_detail "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/client/src/pages/UserDetail/index.jsx"
click node_api "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/server/src/app.js"
click node_httpcodes "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/server/src/constants/httpStatus.js"
click node_prisma "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/server/src/config/database.js"
click node_postgres "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/server/prisma/schema.prisma"
click node_seed "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/server/prisma/seed.js"
click node_gateway "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/appgateway.tf"
click node_network "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/network.tf"
click node_frontend "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/appservice.tf"
click node_backend "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/appservice.tf"
click node_registry "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/acr.tf"
click node_monitoring "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/monitoring.tf"
click node_pipeline "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/.github/workflows/ci-cd.yml"
click node_insights "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/monitoring.tf"
click node_logs "https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/monitoring.tf"

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_bootstrap,node_routes,node_directory,node_detail,node_visitor toneBlue
class node_api,node_httpcodes,node_prisma,node_postgres,node_seed toneAmber
class node_gateway,node_network,node_frontend,node_backend,node_registry toneMint
class node_monitoring,node_pipeline,node_insights,node_logs toneRose
```

## Components

### Web client

- [React bootstrap](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/client/src/main.jsx): `client/src/main.jsx`
- [Client routes](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [User directory](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/client/src/pages/Home/index.jsx): `client/src/pages/Home/index.jsx`
- [User detail](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/client/src/pages/UserDetail/index.jsx): `client/src/pages/UserDetail/index.jsx`

### User API

- [Express API](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/server/src/app.js): `server/src/app.js`
- [HTTP status codes](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/server/src/constants/httpStatus.js): `server/src/constants/httpStatus.js`
- [Prisma client](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/server/src/config/database.js): `server/src/config/database.js`
- [PostgreSQL](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/server/prisma/schema.prisma): `server/prisma/schema.prisma`
- [User seed data](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/server/prisma/seed.js): `server/prisma/seed.js`

### Azure platform

- [Application Gateway](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/appgateway.tf): `terraform/appgateway.tf`
- [Private network](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/network.tf): `terraform/network.tf`
- [Frontend App Service](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/appservice.tf): `terraform/appservice.tf`
- [Backend App Service](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/appservice.tf): `terraform/appservice.tf`
- [Container Registry](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/acr.tf): `terraform/acr.tf`

### Delivery and monitoring

- [Azure monitoring](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/monitoring.tf): `terraform/monitoring.tf`
- [CI/CD workflow](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/.github/workflows/ci-cd.yml): `.github/workflows/ci-cd.yml`
- [Application Insights](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/monitoring.tf): `terraform/monitoring.tf`
- [Log Analytics](https://github.com/shubhamm63/azure-fullstack-devops/blob/main/terraform/monitoring.tf): `terraform/monitoring.tf`

### Other components

- **Application user**

## Connections

- Application user → React bootstrap: opens app (evidence: `Readme.md`)
- React bootstrap → Client routes: renders (evidence: `client/src/main.jsx`)
- Client routes → User directory: routes to (evidence: `client/src/App.jsx`)
- Client routes → User detail: routes to (evidence: `client/src/App.jsx`)
- Application user → User directory: browses users (evidence: `client/src/pages/Home/index.jsx`)
- User directory → Express API: fetches list (evidence: `client/src/pages/Home/index.jsx`)
- Application user → User detail: selects user
- User detail → Express API: fetches user (evidence: `client/src/pages/UserDetail/index.jsx`)
- Express API → Prisma client: queries users (evidence: `server/src/app.js`)
- Express API → HTTP status codes: uses status codes (evidence: `server/src/app.js`)
- Prisma client → PostgreSQL: accesses database (evidence: `Readme.md`)
- User seed data → PostgreSQL: seeds users (evidence: `server/prisma/seed.js`)
- Application user → Application Gateway: enters platform (evidence: `Readme.md`)
- Application Gateway → Frontend App Service: routes traffic (evidence: `Readme.md`)
- Frontend App Service → Backend App Service: calls API (evidence: `Readme.md`)
- Backend App Service → PostgreSQL: connects privately (evidence: `Readme.md`)
- Private network → PostgreSQL: provides private access (evidence: `Readme.md`)
- Private network → Backend App Service: hosts privately (evidence: `Readme.md`)
- CI/CD workflow → Container Registry: pushes images (evidence: `Readme.md`)
- CI/CD workflow → Frontend App Service: deploys app (evidence: `Readme.md`)
- CI/CD workflow → Backend App Service: deploys app (evidence: `Readme.md`)
- Azure monitoring → Application Insights: uses (evidence: `Readme.md`)
- Azure monitoring → Log Analytics: uses (evidence: `Readme.md`)
- Frontend App Service → Azure monitoring: emits metrics (evidence: `Readme.md`)
- Backend App Service → Azure monitoring: emits metrics (evidence: `Readme.md`)
