# rajarajanbalamurugan2021-svg/pro architecture

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

## Overview

This is a role-aware campus portal spanning academic, student-service, communication, and engineering-learning workflows. Users authenticate, enter role-specific portals, and select modules; the engineering branch supports browsing tools and career pathways, while administrators manage published content. Other substantial capabilities in the tree include results and attendance, placement, mentoring, projects, complaints, leave, and communication. The excerpts show the app shell and selected service calls; many feature implementations were not sampled, so those links are omitted or marked unverified rather than presented as confirmed call flows.

Main entry points: [`src/App.tsx`](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/App.tsx) (Portal app), [`src/components/modules/CoreEngineering/CoreEngineeringHub.tsx`](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/CoreEngineering/CoreEngineeringHub.tsx) (Core engineering hub), [`src/services/coreEngineeringService.ts`](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/services/coreEngineeringService.ts) (Engineering content service), [`src/lib/firebase.ts`](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/lib/firebase.ts) (Firebase services)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Portal shell"]
  node_app["Portal app<br/>[App.tsx]"]
  node_auth["Authentication<br/>[AuthScreen.tsx]"]
end

subgraph group_engineering["Engineering learning"]
  node_corehub["Core engineering hub"]
  node_corecms["Engineering CMS"]
  node_coredata["Engineering catalog"]
  node_coreservice["Engineering content service"]
  node_gate["GATE preparation<br/>[GatePrepHub.tsx]"]
  node_gateservice["GATE service<br/>[gateService.ts]"]
end

subgraph group_academics["Academic services"]
  node_results["Results portal<br/>[ResultPortal.tsx]"]
  node_attendance["Attendance"]
  node_placement["Placement system"]
  node_mentor["Mentoring portal"]
  node_projects["Project innovation"]
end

subgraph group_campus["Campus services"]
  node_communication["Communication hub"]
  node_complaints["Complaint management"]
  node_leave["Leave management"]
end

subgraph group_platform["Shared platform"]
  node_rbac["Role access<br/>[rbac.ts]"]
  node_firebase["Firebase services<br/>[firebase.ts]"]
  node_api["Campus data API<br/>[api.ts]"]
  node_firestore[("Cloud Firestore")]
end

node_user(("Campus user"))

node_user -->|"uses"| node_app
node_app -->|"renders"| node_auth
node_app -->|"checks roles"| node_rbac
node_app -.->|"routes to"| node_corehub
node_app -.->|"routes to"| node_results
node_app -.->|"routes to"| node_attendance
node_app -.->|"routes to"| node_placement
node_app -.->|"routes to"| node_mentor
node_app -.->|"routes to"| node_projects
node_app -.->|"routes to"| node_communication
node_app -.->|"routes to"| node_complaints
node_app -.->|"routes to"| node_leave
node_corehub -->|"renders"| node_corecms
node_corehub -->|"fetches tools"| node_coreservice
node_corehub -->|"uses catalog"| node_coredata
node_corehub -->|"links to"| node_gate
node_corecms -->|"loads content"| node_coreservice
node_coreservice -->|"uses"| node_firebase
node_gate -->|"uses"| node_gateservice
node_api -->|"uses"| node_firebase
node_firebase -->|"accesses"| node_firestore

click node_app "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/App.tsx"
click node_auth "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/common/AuthScreen.tsx"
click node_rbac "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/lib/rbac.ts"
click node_corehub "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/CoreEngineering/CoreEngineeringHub.tsx"
click node_corecms "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/CoreEngineering/CoreEngineeringCMS.tsx"
click node_coredata "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/data/coreEngineeringData.ts"
click node_coreservice "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/services/coreEngineeringService.ts"
click node_gate "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/GatePrep/GatePrepHub.tsx"
click node_gateservice "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/services/gateService.ts"
click node_results "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/ResultPortal/ResultPortal.tsx"
click node_attendance "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/FacultyAttendance/FacultyAttendancePortal.tsx"
click node_placement "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/PlacementSystem/PlacementSystem.tsx"
click node_mentor "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/MentorMentee/MentorMenteePortal.tsx"
click node_projects "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/ProjectInnovation/ProjectInnovationHub.tsx"
click node_communication "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/Communication/CommunicationHub.tsx"
click node_complaints "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/ComplaintManagement/ComplaintManagementModule.tsx"
click node_leave "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/LeaveManagement/LeaveManagement.tsx"
click node_firebase "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/lib/firebase.ts"
click node_api "https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/services/api.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_auth,node_user toneBlue
class node_corehub,node_corecms,node_coredata,node_coreservice,node_gate,node_gateservice toneAmber
class node_results,node_attendance,node_placement,node_mentor,node_projects toneMint
class node_communication,node_complaints,node_leave toneRose
class node_rbac,node_firebase,node_api,node_firestore toneIndigo
```

## Components

### Portal shell

- [Portal app](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/App.tsx): `src/App.tsx`
- [Authentication](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/common/AuthScreen.tsx): `src/components/common/AuthScreen.tsx`

### Engineering learning

- [Core engineering hub](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/CoreEngineering/CoreEngineeringHub.tsx): `src/components/modules/CoreEngineering/CoreEngineeringHub.tsx`
- [Engineering CMS](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/CoreEngineering/CoreEngineeringCMS.tsx): `src/components/modules/CoreEngineering/CoreEngineeringCMS.tsx`
- [Engineering catalog](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/data/coreEngineeringData.ts): `src/data/coreEngineeringData.ts`
- [Engineering content service](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/services/coreEngineeringService.ts): `src/services/coreEngineeringService.ts`
- [GATE preparation](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/GatePrep/GatePrepHub.tsx): `src/components/modules/GatePrep/GatePrepHub.tsx`
- [GATE service](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/services/gateService.ts): `src/services/gateService.ts`

### Academic services

- [Results portal](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/ResultPortal/ResultPortal.tsx): `src/components/modules/ResultPortal/ResultPortal.tsx`
- [Attendance](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/FacultyAttendance/FacultyAttendancePortal.tsx): `src/components/modules/FacultyAttendance/FacultyAttendancePortal.tsx`
- [Placement system](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/PlacementSystem/PlacementSystem.tsx): `src/components/modules/PlacementSystem/PlacementSystem.tsx`
- [Mentoring portal](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/MentorMentee/MentorMenteePortal.tsx): `src/components/modules/MentorMentee/MentorMenteePortal.tsx`
- [Project innovation](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/ProjectInnovation/ProjectInnovationHub.tsx): `src/components/modules/ProjectInnovation/ProjectInnovationHub.tsx`

### Campus services

- [Communication hub](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/Communication/CommunicationHub.tsx): `src/components/modules/Communication/CommunicationHub.tsx`
- [Complaint management](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/ComplaintManagement/ComplaintManagementModule.tsx): `src/components/modules/ComplaintManagement/ComplaintManagementModule.tsx`
- [Leave management](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/components/modules/LeaveManagement/LeaveManagement.tsx): `src/components/modules/LeaveManagement/LeaveManagement.tsx`

### Shared platform

- [Role access](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/lib/rbac.ts): `src/lib/rbac.ts`
- [Firebase services](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/lib/firebase.ts): `src/lib/firebase.ts`
- [Campus data API](https://github.com/rajarajanbalamurugan2021-svg/pro/blob/main/src/services/api.ts): `src/services/api.ts`
- **Cloud Firestore**

### Other components

- **Campus user**

## Connections

- Campus user → Portal app: uses
- Portal app → Authentication: renders (evidence: `src/App.tsx`)
- Portal app → Role access: checks roles (evidence: `src/App.tsx`)
- Portal app → Core engineering hub: routes to (evidence: `src/App.tsx`)
- Portal app → Results portal: routes to (evidence: `src/App.tsx`)
- Portal app → Attendance: routes to (evidence: `src/App.tsx`)
- Portal app → Placement system: routes to (evidence: `src/App.tsx`)
- Portal app → Mentoring portal: routes to (evidence: `src/App.tsx`)
- Portal app → Project innovation: routes to (evidence: `src/App.tsx`)
- Portal app → Communication hub: routes to (evidence: `src/App.tsx`)
- Portal app → Complaint management: routes to
- Portal app → Leave management: routes to (evidence: `src/App.tsx`)
- Core engineering hub → Engineering CMS: renders (evidence: `src/components/modules/CoreEngineering/CoreEngineeringHub.tsx`)
- Core engineering hub → Engineering content service: fetches tools (evidence: `src/components/modules/CoreEngineering/CoreEngineeringHub.tsx`)
- Core engineering hub → Engineering catalog: uses catalog (evidence: `src/components/modules/CoreEngineering/CoreEngineeringHub.tsx`)
- Core engineering hub → GATE preparation: links to (evidence: `src/components/modules/CoreEngineering/CoreEngineeringHub.tsx`)
- Engineering CMS → Engineering content service: loads content (evidence: `src/components/modules/CoreEngineering/CoreEngineeringCMS.tsx`)
- Engineering content service → Firebase services: uses (evidence: `src/services/coreEngineeringService.ts`)
- GATE preparation → GATE service: uses (evidence: `src/components/modules/GatePrep/GatePrepHub.tsx`)
- Campus data API → Firebase services: uses (evidence: `src/services/api.ts`)
- Firebase services → Cloud Firestore: accesses (evidence: `src/lib/firebase.ts`)
