# toijam-ghanashyam/campus-linkv1 architecture

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

- Interactive diagram: https://gitdiagram.com/toijam-ghanashyam/campus-linkv1
- Repository: https://github.com/toijam-ghanashyam/campus-linkv1

## Overview

CampusLink AI is a campus placement and recruitment platform with student, recruiter, and university-admin portals. The frontend mounts a role-based router, then renders each portal inside a shared dashboard shell; students can load placement jobs from the backend, and administrators can submit drive-scheduling requests. The documented product also includes application and interview tracking, AI resume matching, recruiter candidate pipelines, and university placement administration. Those broader capabilities are represented by the portal and navigation components; the sampled recruiter view uses local candidate data. Backend internals were not excerpted, so its node is limited to the documented API service.

Main entry points: [`frontend/src/components/layout/DashboardLayout.tsx`](https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/components/layout/DashboardLayout.tsx) (Dashboard shell), [`frontend/src/App.tsx`](https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/App.tsx) (Role router), [`frontend/src/components/layout/Sidebar.tsx`](https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/components/layout/Sidebar.tsx) (Role navigation), [`frontend/src/pages/StudentDashboard.tsx`](https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/pages/StudentDashboard.tsx) (Student portal)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_mount["React mount<br/>[main.tsx]"]
  node_router["Role router<br/>[App.tsx]"]
end

subgraph group_shared["Shared dashboard"]
  node_layout["Dashboard shell"]
  node_sidebar["Role navigation<br/>[Sidebar.tsx]"]
  node_header["Header and profile<br/>[Header.tsx]"]
  node_navconfig["Role configuration<br/>[navConfig.ts]"]
  node_navicon["Navigation icons<br/>[NavIcon.tsx]"]
end

subgraph group_portals["Role portals"]
  node_student["Student portal"]
  node_recruiter["Recruiter portal"]
  node_admin["Admin portal<br/>[AdminDashboard.tsx]"]
end

subgraph group_services["API service"]
  node_api["Placement API<br/>[main.py]"]
end

node_browser(("Portal users"))

node_browser -->|"opens"| node_mount
node_mount -->|"renders"| node_router
node_router -->|"routes"| node_student
node_router -->|"routes"| node_recruiter
node_router -->|"routes"| node_admin
node_student -->|"renders"| node_layout
node_recruiter -->|"renders"| node_layout
node_admin -->|"renders"| node_layout
node_layout -->|"renders"| node_sidebar
node_layout -->|"renders"| node_header
node_sidebar -->|"reads"| node_navconfig
node_sidebar -->|"renders"| node_navicon
node_header -->|"reads"| node_navconfig
node_student -->|"requests jobs"| node_api
node_admin -->|"schedules drives"| node_api

click node_mount "https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/main.tsx"
click node_router "https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/App.tsx"
click node_layout "https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/components/layout/DashboardLayout.tsx"
click node_sidebar "https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/components/layout/Sidebar.tsx"
click node_header "https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/components/layout/Header.tsx"
click node_navconfig "https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/components/layout/navConfig.ts"
click node_navicon "https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/components/layout/NavIcon.tsx"
click node_student "https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/pages/StudentDashboard.tsx"
click node_recruiter "https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/pages/RecruiterDashboard.tsx"
click node_admin "https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/pages/AdminDashboard.tsx"
click node_api "https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/backend/main.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_mount,node_router,node_browser toneBlue
class node_layout,node_sidebar,node_header,node_navconfig,node_navicon toneAmber
class node_student,node_recruiter,node_admin toneMint
class node_api toneRose
```

## Components

### Web entry

- [React mount](https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/main.tsx): `frontend/src/main.tsx`
- [Role router](https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`

### Shared dashboard

- [Dashboard shell](https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/components/layout/DashboardLayout.tsx): `frontend/src/components/layout/DashboardLayout.tsx`
- [Role navigation](https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/components/layout/Sidebar.tsx): `frontend/src/components/layout/Sidebar.tsx`
- [Header and profile](https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/components/layout/Header.tsx): `frontend/src/components/layout/Header.tsx`
- [Role configuration](https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/components/layout/navConfig.ts): `frontend/src/components/layout/navConfig.ts`
- [Navigation icons](https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/components/layout/NavIcon.tsx): `frontend/src/components/layout/NavIcon.tsx`

### Role portals

- [Student portal](https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/pages/StudentDashboard.tsx): `frontend/src/pages/StudentDashboard.tsx`
- [Recruiter portal](https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/pages/RecruiterDashboard.tsx): `frontend/src/pages/RecruiterDashboard.tsx`
- [Admin portal](https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/frontend/src/pages/AdminDashboard.tsx): `frontend/src/pages/AdminDashboard.tsx`

### API service

- [Placement API](https://github.com/toijam-ghanashyam/campus-linkv1/blob/main/backend/main.py): `backend/main.py`

### Other components

- **Portal users**

## Connections

- Portal users → React mount: opens (evidence: `frontend/src/main.tsx`)
- React mount → Role router: renders (evidence: `frontend/src/main.tsx`)
- Role router → Student portal: routes (evidence: `frontend/src/App.tsx`)
- Role router → Recruiter portal: routes (evidence: `frontend/src/App.tsx`)
- Role router → Admin portal: routes (evidence: `frontend/src/App.tsx`)
- Student portal → Dashboard shell: renders (evidence: `frontend/src/pages/StudentDashboard.tsx`)
- Recruiter portal → Dashboard shell: renders (evidence: `frontend/src/pages/RecruiterDashboard.tsx`)
- Admin portal → Dashboard shell: renders (evidence: `frontend/src/pages/AdminDashboard.tsx`)
- Dashboard shell → Role navigation: renders (evidence: `frontend/src/components/layout/DashboardLayout.tsx`)
- Dashboard shell → Header and profile: renders (evidence: `frontend/src/components/layout/DashboardLayout.tsx`)
- Role navigation → Role configuration: reads (evidence: `frontend/src/components/layout/Sidebar.tsx`)
- Role navigation → Navigation icons: renders (evidence: `frontend/src/components/layout/Sidebar.tsx`)
- Header and profile → Role configuration: reads (evidence: `frontend/src/components/layout/Header.tsx`)
- Student portal → Placement API: requests jobs (evidence: `frontend/src/pages/StudentDashboard.tsx`)
- Admin portal → Placement API: schedules drives (evidence: `frontend/src/pages/AdminDashboard.tsx`)
