# himanshu110011/btech_icp_ib_sa_ps15 architecture

> Architecture diagram of the GitHub repository himanshu110011/btech_icp_ib_sa_ps15, 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/himanshu110011/btech_icp_ib_sa_ps15
- Repository: https://github.com/himanshu110011/btech_icp_ib_sa_ps15

## Overview

Angaar Labs is an agency portfolio and contact website backed by an Express API and MongoDB. Visitors browse studio information and published project listings or case studies, then can submit a private enquiry; administrators can log in to a protected placeholder dashboard. The graph preserves the documented public, enquiry, project, health, and admin capabilities. Some client pages and server modules were not excerpted, so their internal calls are not asserted; documented HTTP routes and sampled server relationships provide the evidence shown.

Main entry points: [`client/src/routes/AppRouter.jsx`](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/client/src/routes/AppRouter.jsx) (Website routes), [`server/src/routes/auth.routes.js`](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/routes/auth.routes.js) (Auth routes), [`server/src/app.js`](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/app.js) (API application), [`server/src/routes/project.routes.js`](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/routes/project.routes.js) (Project routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Website experience"]
  node_site_routes["Website routes<br/>[AppRouter.jsx]"]
  node_studio_pages["Studio pages"]
  node_portfolio_ui["Portfolio views<br/>[WorkPage.jsx]"]
  node_project_detail["Project case study"]
  node_contact_ui["Contact form<br/>[ContactPage.jsx]"]
  node_admin_ui["Admin screens"]
  node_ui_system["UI components"]
  node_motion_system["Motion components"]
end

subgraph group_api["API workflows"]
  node_api_app["API application<br/>[app.js]"]
  node_health["Health endpoint<br/>[health.routes.js]"]
  node_project_routes["Project routes<br/>[project.routes.js]"]
  node_project_controller["Project queries"]
  node_enquiry_routes["Enquiry route<br/>[enquiry.routes.js]"]
  node_enquiry_controller["Enquiry intake"]
end

subgraph group_identity["Admin identity"]
  node_auth_routes["Auth routes<br/>[auth.routes.js]"]
  node_auth_controller["Auth operations<br/>[auth.controller.js]"]
  node_auth_middleware["Access checks<br/>[auth.js]"]
  node_auth_tokens["Token and cookie<br/>[auth-token.js]"]
end

subgraph group_persistence["Persistence"]
  node_projects_store[("Project records<br/>[project.model.js]")]
  node_enquiries_store[("Enquiry records<br/>[enquiry.model.js]")]
  node_users_store[("Admin users<br/>[user.model.js]")]
end

node_visitor(("Visitor"))
node_admin(("Administrator"))
node_mongo[("MongoDB")]

node_visitor -->|"visits"| node_site_routes
node_site_routes -.->|"routes to"| node_studio_pages
node_site_routes -.->|"routes to"| node_portfolio_ui
node_site_routes -.->|"routes to"| node_project_detail
node_site_routes -.->|"routes to"| node_contact_ui
node_admin -->|"visits"| node_site_routes
node_site_routes -.->|"routes to"| node_admin_ui
node_portfolio_ui -->|"requests projects"| node_project_routes
node_project_detail -->|"requests project"| node_project_routes
node_contact_ui -->|"submits enquiry"| node_enquiry_routes
node_admin_ui -->|"authenticates"| node_auth_routes
node_admin_ui -->|"checks identity"| node_auth_routes
node_api_app -->|"mounts"| node_health
node_api_app -->|"mounts"| node_project_routes
node_api_app -->|"mounts"| node_enquiry_routes
node_api_app -->|"mounts"| node_auth_routes
node_project_routes -->|"dispatches"| node_project_controller
node_enquiry_routes -->|"dispatches"| node_enquiry_controller
node_auth_routes -->|"dispatches"| node_auth_controller
node_auth_routes -->|"protects identity route"| node_auth_middleware
node_project_controller -->|"queries"| node_projects_store
node_enquiry_controller -->|"creates"| node_enquiries_store
node_auth_controller -->|"loads user"| node_users_store
node_auth_middleware -->|"checks user"| node_users_store
node_auth_controller -->|"issues cookie token"| node_auth_tokens
node_auth_middleware -->|"verifies token"| node_auth_tokens
node_projects_store -.->|"persists"| node_mongo
node_enquiries_store -.->|"persists"| node_mongo
node_users_store -.->|"persists"| node_mongo

click node_site_routes "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/client/src/routes/AppRouter.jsx"
click node_studio_pages "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/tree/main/client/src/pages"
click node_portfolio_ui "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/client/src/pages/WorkPage.jsx"
click node_project_detail "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/client/src/pages/ProjectDetailPage.jsx"
click node_contact_ui "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/client/src/pages/ContactPage.jsx"
click node_admin_ui "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/tree/main/client/src/pages/admin"
click node_ui_system "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/tree/main/client/src/components/ui"
click node_motion_system "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/tree/main/client/src/components/motion"
click node_api_app "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/app.js"
click node_health "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/routes/health.routes.js"
click node_project_routes "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/routes/project.routes.js"
click node_project_controller "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/controllers/project.controller.js"
click node_enquiry_routes "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/routes/enquiry.routes.js"
click node_enquiry_controller "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/controllers/enquiry.controller.js"
click node_auth_routes "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/routes/auth.routes.js"
click node_auth_controller "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/controllers/auth.controller.js"
click node_auth_middleware "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/middleware/auth.js"
click node_auth_tokens "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/utils/auth-token.js"
click node_projects_store "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/models/project.model.js"
click node_enquiries_store "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/models/enquiry.model.js"
click node_users_store "https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/models/user.model.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_site_routes,node_studio_pages,node_portfolio_ui,node_project_detail,node_contact_ui,node_admin_ui,node_ui_system,node_motion_system toneBlue
class node_api_app,node_health,node_project_routes,node_project_controller,node_enquiry_routes,node_enquiry_controller,node_mongo toneAmber
class node_auth_routes,node_auth_controller,node_auth_middleware,node_auth_tokens toneMint
class node_projects_store,node_enquiries_store,node_users_store toneRose
class node_visitor,node_admin toneIndigo
```

## Components

### Website experience

- [Website routes](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/client/src/routes/AppRouter.jsx): `client/src/routes/AppRouter.jsx`
- [Studio pages](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/tree/main/client/src/pages): `client/src/pages`
- [Portfolio views](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/client/src/pages/WorkPage.jsx): `client/src/pages/WorkPage.jsx`
- [Project case study](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/client/src/pages/ProjectDetailPage.jsx): `client/src/pages/ProjectDetailPage.jsx`
- [Contact form](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/client/src/pages/ContactPage.jsx): `client/src/pages/ContactPage.jsx`
- [Admin screens](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/tree/main/client/src/pages/admin): `client/src/pages/admin`
- [UI components](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/tree/main/client/src/components/ui): `client/src/components/ui`
- [Motion components](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/tree/main/client/src/components/motion): `client/src/components/motion`

### API workflows

- [API application](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/app.js): `server/src/app.js`
- [Health endpoint](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/routes/health.routes.js): `server/src/routes/health.routes.js`
- [Project routes](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/routes/project.routes.js): `server/src/routes/project.routes.js`
- [Project queries](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/controllers/project.controller.js): `server/src/controllers/project.controller.js`
- [Enquiry route](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/routes/enquiry.routes.js): `server/src/routes/enquiry.routes.js`
- [Enquiry intake](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/controllers/enquiry.controller.js): `server/src/controllers/enquiry.controller.js`

### Admin identity

- [Auth routes](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/routes/auth.routes.js): `server/src/routes/auth.routes.js`
- [Auth operations](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/controllers/auth.controller.js): `server/src/controllers/auth.controller.js`
- [Access checks](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/middleware/auth.js): `server/src/middleware/auth.js`
- [Token and cookie](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/utils/auth-token.js): `server/src/utils/auth-token.js`

### Persistence

- [Project records](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/models/project.model.js): `server/src/models/project.model.js`
- [Enquiry records](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/models/enquiry.model.js): `server/src/models/enquiry.model.js`
- [Admin users](https://github.com/himanshu110011/btech_icp_ib_sa_ps15/blob/main/server/src/models/user.model.js): `server/src/models/user.model.js`

### Other components

- **Visitor**
- **Administrator**
- **MongoDB**

## Connections

- Visitor → Website routes: visits (evidence: `README.md`)
- Website routes → Studio pages: routes to
- Website routes → Portfolio views: routes to
- Website routes → Project case study: routes to
- Website routes → Contact form: routes to
- Administrator → Website routes: visits (evidence: `README.md`)
- Website routes → Admin screens: routes to
- Portfolio views → Project routes: requests projects (evidence: `README.md`)
- Project case study → Project routes: requests project (evidence: `README.md`)
- Contact form → Enquiry route: submits enquiry (evidence: `README.md`)
- Admin screens → Auth routes: authenticates (evidence: `README.md`)
- Admin screens → Auth routes: checks identity (evidence: `README.md`)
- API application → Health endpoint: mounts (evidence: `server/src/app.js`)
- API application → Project routes: mounts (evidence: `server/src/app.js`)
- API application → Enquiry route: mounts (evidence: `server/src/app.js`)
- API application → Auth routes: mounts (evidence: `server/src/app.js`)
- Project routes → Project queries: dispatches (evidence: `server/src/routes/project.routes.js`)
- Enquiry route → Enquiry intake: dispatches (evidence: `server/src/routes/enquiry.routes.js`)
- Auth routes → Auth operations: dispatches (evidence: `server/src/routes/auth.routes.js`)
- Auth routes → Access checks: protects identity route (evidence: `server/src/routes/auth.routes.js`)
- Project queries → Project records: queries (evidence: `server/src/controllers/project.controller.js`)
- Enquiry intake → Enquiry records: creates (evidence: `server/src/controllers/enquiry.controller.js`)
- Auth operations → Admin users: loads user (evidence: `server/src/controllers/auth.controller.js`)
- Access checks → Admin users: checks user (evidence: `server/src/middleware/auth.js`)
- Auth operations → Token and cookie: issues cookie token (evidence: `server/src/controllers/auth.controller.js`)
- Access checks → Token and cookie: verifies token (evidence: `server/src/middleware/auth.js`)
- Project records → MongoDB: persists
- Enquiry records → MongoDB: persists
- Admin users → MongoDB: persists
