# git-mahmud/seu.ratemyfaculty architecture

> Architecture diagram of the GitHub repository git-mahmud/seu.ratemyfaculty, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/git-mahmud/seu.ratemyfaculty
- Repository: https://github.com/git-mahmud/seu.ratemyfaculty

## Overview

SEU Rate My Faculty lets students discover faculty feedback and academic resources, contribute reviews or PYQs, and use supporting features such as favorites, a leaderboard, and an AI assistant. The main path is browsing faculty profiles, reading reviews and PYQs, and optionally signing in to contribute. The server routes requests through storage to PostgreSQL. Several frontend pages and server subsystems are represented from the README and file tree; their internal calls were not sampled, so uncertain links are omitted or marked unverified.

Main entry points: [`client/src/App.tsx`](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/App.tsx) (Web application), [`client/src/lib/queryClient.ts`](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/lib/queryClient.ts) (API request client), [`server/routes.ts`](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/server/routes.ts) (HTTP API routes), [`client/src/pages/TeacherProfile.tsx`](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/pages/TeacherProfile.tsx) (Faculty profile)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Student experience"]
  node_app["Web application<br/>[App.tsx]"]
  node_faculty["Faculty discovery<br/>[Home.tsx]"]
  node_profile["Faculty profile<br/>[TeacherProfile.tsx]"]
  node_reviews_ui["Review submission<br/>[ReviewForm.tsx]"]
  node_pyqs_ui["PYQ resources<br/>[PyqList.tsx]"]
  node_admin_ui["Content management<br/>[AdminDashboard.tsx]"]
  node_other_features["Student features<br/>[Leaderboard.tsx]"]
  node_kitty["Kitty AI assistant<br/>[KittyAI.tsx]"]
  node_query["API request client<br/>[queryClient.ts]"]
end

subgraph group_api["Application services"]
  node_routes["HTTP API routes<br/>[routes.ts]"]
end

subgraph group_data["Domain and persistence"]
  node_storage["Domain data access<br/>[storage.ts]"]
  node_schema["Domain schema<br/>[schema.ts]"]
  node_db["Database connection<br/>[db.ts]"]
end

subgraph group_identity["Identity and access"]
  node_auth["Authentication<br/>[auth.ts]"]
end

node_student(("Student"))
node_postgres[("PostgreSQL")]
node_google["Google OAuth"]
node_ai_service["AI provider"]

node_student -->|"uses"| node_app
node_app -->|"routes to"| node_faculty
node_app -->|"routes to"| node_profile
node_app -->|"routes to"| node_admin_ui
node_app -->|"routes to"| node_other_features
node_app -->|"renders"| node_kitty
node_faculty -.->|"opens"| node_profile
node_profile -.->|"offers"| node_reviews_ui
node_profile -.->|"shows"| node_pyqs_ui
node_reviews_ui -.->|"submits via"| node_query
node_pyqs_ui -.->|"loads via"| node_query
node_admin_ui -.->|"manages via"| node_query
node_kitty -.->|"requests via"| node_query
node_query -.->|"sends HTTP"| node_routes
node_routes -->|"calls"| node_storage
node_routes -->|"configures"| node_auth
node_auth -->|"looks up users"| node_storage
node_auth -->|"authenticates with"| node_google
node_storage -->|"queries"| node_db
node_db -->|"uses tables"| node_schema
node_db -.->|"connects to"| node_postgres
node_routes -.->|"may request AI"| node_ai_service

click node_app "https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/App.tsx"
click node_faculty "https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/pages/Home.tsx"
click node_profile "https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/pages/TeacherProfile.tsx"
click node_reviews_ui "https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/components/ReviewForm.tsx"
click node_pyqs_ui "https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/components/PyqList.tsx"
click node_admin_ui "https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/pages/AdminDashboard.tsx"
click node_other_features "https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/pages/Leaderboard.tsx"
click node_kitty "https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/components/KittyAI.tsx"
click node_query "https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/lib/queryClient.ts"
click node_routes "https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/server/routes.ts"
click node_auth "https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/server/auth.ts"
click node_storage "https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/server/storage.ts"
click node_schema "https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/shared/schema.ts"
click node_db "https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/server/db.ts"

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_faculty,node_profile,node_reviews_ui,node_pyqs_ui,node_admin_ui,node_other_features,node_kitty,node_query toneBlue
class node_routes,node_postgres toneAmber
class node_storage,node_schema,node_db toneMint
class node_auth toneRose
class node_student,node_google,node_ai_service toneIndigo
```

## Components

### Student experience

- [Web application](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/App.tsx): `client/src/App.tsx`
- [Faculty discovery](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/pages/Home.tsx): `client/src/pages/Home.tsx`
- [Faculty profile](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/pages/TeacherProfile.tsx): `client/src/pages/TeacherProfile.tsx`
- [Review submission](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/components/ReviewForm.tsx): `client/src/components/ReviewForm.tsx`
- [PYQ resources](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/components/PyqList.tsx): `client/src/components/PyqList.tsx`
- [Content management](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/pages/AdminDashboard.tsx): `client/src/pages/AdminDashboard.tsx`
- [Student features](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/pages/Leaderboard.tsx): `client/src/pages/Leaderboard.tsx`
- [Kitty AI assistant](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/components/KittyAI.tsx): `client/src/components/KittyAI.tsx`
- [API request client](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/client/src/lib/queryClient.ts): `client/src/lib/queryClient.ts`

### Application services

- [HTTP API routes](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/server/routes.ts): `server/routes.ts`

### Domain and persistence

- [Domain data access](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/server/storage.ts): `server/storage.ts`
- [Domain schema](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/shared/schema.ts): `shared/schema.ts`
- [Database connection](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/server/db.ts): `server/db.ts`

### Identity and access

- [Authentication](https://github.com/git-mahmud/seu.ratemyfaculty/blob/main/server/auth.ts): `server/auth.ts`

### Other components

- **Student**
- **PostgreSQL**
- **Google OAuth**
- **AI provider**

## Connections

- Student → Web application: uses (evidence: `README.md`)
- Web application → Faculty discovery: routes to (evidence: `client/src/App.tsx`)
- Web application → Faculty profile: routes to (evidence: `client/src/App.tsx`)
- Web application → Content management: routes to (evidence: `client/src/App.tsx`)
- Web application → Student features: routes to (evidence: `client/src/App.tsx`)
- Web application → Kitty AI assistant: renders (evidence: `client/src/App.tsx`)
- Faculty discovery → Faculty profile: opens
- Faculty profile → Review submission: offers
- Faculty profile → PYQ resources: shows
- Review submission → API request client: submits via
- PYQ resources → API request client: loads via
- Content management → API request client: manages via
- Kitty AI assistant → API request client: requests via
- API request client → HTTP API routes: sends HTTP
- HTTP API routes → Domain data access: calls (evidence: `server/routes.ts`)
- HTTP API routes → Authentication: configures (evidence: `server/routes.ts`)
- Authentication → Domain data access: looks up users (evidence: `server/auth.ts`)
- Authentication → Google OAuth: authenticates with (evidence: `server/auth.ts`)
- Domain data access → Database connection: queries (evidence: `server/storage.ts`)
- Database connection → Domain schema: uses tables (evidence: `server/db.ts`)
- Database connection → PostgreSQL: connects to
- HTTP API routes → AI provider: may request AI
