# karancodesiot/allver architecture

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

## Overview

AllverHQ is a construction-professional marketplace: users register, create role-specific profiles, discover architects, contractors, and labourers, and view professional or project details. The frontend routes these experiences through a shared dashboard layout; the Express backend provides account, profile, professional-listing, and image-upload endpoints backed by a shared user model. The excerpts show routing and some API behavior, but not most frontend-to-backend calls or project persistence, so those connections are omitted.

Main entry points: [`frontend/src/App.jsx`](https://github.com/karancodesiot/allver/blob/main/frontend/src/App.jsx) (Route application), [`frontend/src/DashboardLayout.jsx`](https://github.com/karancodesiot/allver/blob/main/frontend/src/DashboardLayout.jsx) (Dashboard shell), [`frontend/src/ClientProfileSetup.jsx`](https://github.com/karancodesiot/allver/blob/main/frontend/src/ClientProfileSetup.jsx) (Client setup), [`frontend/src/EditProfilePage.jsx`](https://github.com/karancodesiot/allver/blob/main/frontend/src/EditProfilePage.jsx) (Edit profile)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and navigation"]
  node_app["Route application<br/>[App.jsx]"]
  node_home["Home experience<br/>[Home.jsx]"]
  node_dashboard["Dashboard shell"]
end

subgraph group_accounts["Accounts and profiles"]
  node_register["Registration<br/>[Register.jsx]"]
  node_login["Login<br/>[Login.jsx]"]
  node_clientsetup["Client setup"]
  node_architectsetup["Architect setup"]
  node_contractorsetup["Contractor setup"]
  node_laboursetup["Labour setup"]
  node_editprofile["Edit profile"]
end

subgraph group_discovery["Professional discovery"]
  node_architects["Architect directory<br/>[ArchitectsPage.jsx]"]
  node_contractors["Contractor directory"]
  node_labour["Labour directory<br/>[LabourPage.jsx]"]
  node_architectprofile["Architect profile"]
end

subgraph group_platform["Projects and backend"]
  node_projectdetails["Project details"]
  node_api["Express API<br/>[index.js]"]
  node_user[("User model<br/>[User.js]")]
end

node_visitor(("Visitor or user"))

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_register
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_clientsetup
node_app -->|"routes to"| node_architectsetup
node_app -->|"routes to"| node_contractorsetup
node_app -->|"routes to"| node_laboursetup
node_app -->|"routes to"| node_architects
node_app -->|"routes to"| node_contractors
node_app -->|"routes to"| node_labour
node_app -->|"routes to"| node_architectprofile
node_app -->|"routes to"| node_editprofile
node_app -->|"routes to"| node_projectdetails
node_architects -->|"renders within"| node_dashboard
node_contractors -->|"renders within"| node_dashboard
node_labour -->|"renders within"| node_dashboard
node_architectprofile -->|"renders within"| node_dashboard
node_editprofile -->|"renders within"| node_dashboard
node_projectdetails -->|"renders within"| node_dashboard
node_clientsetup -->|"updates profile"| node_api
node_api -->|"queries and updates"| node_user

click node_app "https://github.com/karancodesiot/allver/blob/main/frontend/src/App.jsx"
click node_home "https://github.com/karancodesiot/allver/blob/main/frontend/src/Home.jsx"
click node_dashboard "https://github.com/karancodesiot/allver/blob/main/frontend/src/DashboardLayout.jsx"
click node_register "https://github.com/karancodesiot/allver/blob/main/frontend/src/Register.jsx"
click node_login "https://github.com/karancodesiot/allver/blob/main/frontend/src/Login.jsx"
click node_clientsetup "https://github.com/karancodesiot/allver/blob/main/frontend/src/ClientProfileSetup.jsx"
click node_architectsetup "https://github.com/karancodesiot/allver/blob/main/frontend/src/ArchitectProfileSetup.jsx"
click node_contractorsetup "https://github.com/karancodesiot/allver/blob/main/frontend/src/ContractorProfileSetup.jsx"
click node_laboursetup "https://github.com/karancodesiot/allver/blob/main/frontend/src/LabourProfileSetup.jsx"
click node_editprofile "https://github.com/karancodesiot/allver/blob/main/frontend/src/EditProfilePage.jsx"
click node_architects "https://github.com/karancodesiot/allver/blob/main/frontend/src/ArchitectsPage.jsx"
click node_contractors "https://github.com/karancodesiot/allver/blob/main/frontend/src/ContractorsPage.jsx"
click node_labour "https://github.com/karancodesiot/allver/blob/main/frontend/src/LabourPage.jsx"
click node_architectprofile "https://github.com/karancodesiot/allver/blob/main/frontend/src/ArchitectProfilePage.jsx"
click node_projectdetails "https://github.com/karancodesiot/allver/blob/main/frontend/src/ProjectDetailsPage.jsx"
click node_api "https://github.com/karancodesiot/allver/blob/main/backend/index.js"
click node_user "https://github.com/karancodesiot/allver/blob/main/backend/models/User.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_app,node_home,node_dashboard,node_visitor toneBlue
class node_register,node_login,node_clientsetup,node_architectsetup,node_contractorsetup,node_laboursetup,node_editprofile toneAmber
class node_architects,node_contractors,node_labour,node_architectprofile toneMint
class node_projectdetails,node_api,node_user toneRose
```

## Components

### Entry and navigation

- [Route application](https://github.com/karancodesiot/allver/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Home experience](https://github.com/karancodesiot/allver/blob/main/frontend/src/Home.jsx): `frontend/src/Home.jsx`
- [Dashboard shell](https://github.com/karancodesiot/allver/blob/main/frontend/src/DashboardLayout.jsx): `frontend/src/DashboardLayout.jsx`

### Accounts and profiles

- [Registration](https://github.com/karancodesiot/allver/blob/main/frontend/src/Register.jsx): `frontend/src/Register.jsx`
- [Login](https://github.com/karancodesiot/allver/blob/main/frontend/src/Login.jsx): `frontend/src/Login.jsx`
- [Client setup](https://github.com/karancodesiot/allver/blob/main/frontend/src/ClientProfileSetup.jsx): `frontend/src/ClientProfileSetup.jsx`
- [Architect setup](https://github.com/karancodesiot/allver/blob/main/frontend/src/ArchitectProfileSetup.jsx): `frontend/src/ArchitectProfileSetup.jsx`
- [Contractor setup](https://github.com/karancodesiot/allver/blob/main/frontend/src/ContractorProfileSetup.jsx): `frontend/src/ContractorProfileSetup.jsx`
- [Labour setup](https://github.com/karancodesiot/allver/blob/main/frontend/src/LabourProfileSetup.jsx): `frontend/src/LabourProfileSetup.jsx`
- [Edit profile](https://github.com/karancodesiot/allver/blob/main/frontend/src/EditProfilePage.jsx): `frontend/src/EditProfilePage.jsx`

### Professional discovery

- [Architect directory](https://github.com/karancodesiot/allver/blob/main/frontend/src/ArchitectsPage.jsx): `frontend/src/ArchitectsPage.jsx`
- [Contractor directory](https://github.com/karancodesiot/allver/blob/main/frontend/src/ContractorsPage.jsx): `frontend/src/ContractorsPage.jsx`
- [Labour directory](https://github.com/karancodesiot/allver/blob/main/frontend/src/LabourPage.jsx): `frontend/src/LabourPage.jsx`
- [Architect profile](https://github.com/karancodesiot/allver/blob/main/frontend/src/ArchitectProfilePage.jsx): `frontend/src/ArchitectProfilePage.jsx`

### Projects and backend

- [Project details](https://github.com/karancodesiot/allver/blob/main/frontend/src/ProjectDetailsPage.jsx): `frontend/src/ProjectDetailsPage.jsx`
- [Express API](https://github.com/karancodesiot/allver/blob/main/backend/index.js): `backend/index.js`
- [User model](https://github.com/karancodesiot/allver/blob/main/backend/models/User.js): `backend/models/User.js`

### Other components

- **Visitor or user**

## Connections

- Visitor or user → Route application: opens
- Route application → Home experience: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Registration: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Login: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Client setup: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Architect setup: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Contractor setup: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Labour setup: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Architect directory: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Contractor directory: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Labour directory: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Architect profile: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Edit profile: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Project details: routes to (evidence: `frontend/src/App.jsx`)
- Architect directory → Dashboard shell: renders within (evidence: `frontend/src/ArchitectsPage.jsx`)
- Contractor directory → Dashboard shell: renders within (evidence: `frontend/src/ContractorsPage.jsx`)
- Labour directory → Dashboard shell: renders within (evidence: `frontend/src/LabourPage.jsx`)
- Architect profile → Dashboard shell: renders within (evidence: `frontend/src/ArchitectProfilePage.jsx`)
- Edit profile → Dashboard shell: renders within (evidence: `frontend/src/EditProfilePage.jsx`)
- Project details → Dashboard shell: renders within (evidence: `frontend/src/ProjectDetailsPage.jsx`)
- Client setup → Express API: updates profile (evidence: `frontend/src/ClientProfileSetup.jsx`)
- Express API → User model: queries and updates (evidence: `backend/index.js`)
