# ksmaharajan-creator/firstvs architecture

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

- Interactive diagram: https://gitdiagram.com/ksmaharajan-creator/firstvs
- Repository: https://github.com/ksmaharajan-creator/firstvs

## Overview

This is an employee-management portal with a React interface and ASP.NET Core API. Users enter through the routed, protected UI and use modules for employee registration and profiles, leave applications and approvals, attendance, payroll and payslips, task allocation and status, performance evaluation, announcements, and holidays. Page components call a shared Axios client; API controllers handle requests, with several sampled endpoints executing SQL Server stored procedures directly. The README is empty, so capabilities are inferred from the route, sidebar, and module names; unsampled controller behavior and database wiring are not expanded beyond evidence.

Main entry points: [`student-portal-ui/src/services/api.js`](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/services/api.js) (HTTP client), [`student-portal-ui/src/App.jsx`](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/App.jsx) (Routes and access), [`StudentPortal/Controllers/EmployeeLeaveController.cs`](https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeeLeaveController.cs) (Leave endpoints), [`StudentPortal/Controllers/EmployeeAttendanceController.cs`](https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeeAttendanceController.cs) (Attendance endpoints)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Portal interface"]
  node_app["Routes and access<br/>[App.jsx]"]
  node_layout["Portal shell<br/>[Layout.jsx]"]
  node_sidebar["Feature navigation<br/>[Sidebar.jsx]"]
  node_api["HTTP client<br/>[api.js]"]
end

subgraph group_people["Employee records"]
  node_registration["Employee registration"]
  node_profiles["Employee profiles"]
end

subgraph group_workforce["Workforce operations"]
  node_leave["Leave applications<br/>[Employeeleave.jsx]"]
  node_leave_approval["Leave approval"]
  node_attendance["Attendance"]
  node_payroll["Payroll"]
  node_monthly_payroll["Monthly payroll"]
  node_task_alloc["Task allocation"]
  node_task_status["Task status"]
  node_performance["Performance evaluation"]
  node_announcements["Announcements"]
  node_holidays["Holidays<br/>[Holidayslist.jsx]"]
end

subgraph group_backend["API and persistence"]
  node_employee_model["Employee model<br/>[Employee.cs]"]
  node_leave_api["Leave endpoints"]
  node_leave_status_api["Leave status endpoints"]
  node_attendance_api["Attendance endpoints"]
  node_payroll_api["Payroll endpoints"]
  node_monthly_payroll_api["Monthly payroll API"]
  node_task_api["Task endpoints"]
  node_performance_api["Evaluation endpoints"]
  node_announcements_api["Announcement endpoints"]
  node_sqlserver[("SQL Server")]
end

node_user(("Portal user"))

node_user -->|"opens portal"| node_app
node_app -->|"renders shell"| node_layout
node_app -->|"routes to"| node_registration
node_app -->|"routes to"| node_profiles
node_app -->|"routes to"| node_leave
node_app -->|"routes to"| node_leave_approval
node_app -->|"routes to"| node_attendance
node_app -->|"routes to"| node_payroll
node_app -->|"routes to"| node_monthly_payroll
node_app -->|"routes to"| node_task_alloc
node_app -->|"routes to"| node_task_status
node_app -->|"routes to"| node_performance
node_app -->|"routes to"| node_announcements
node_app -->|"routes to"| node_holidays
node_layout -->|"renders navigation"| node_sidebar
node_user -->|"submits leave"| node_leave
node_user -->|"reviews requests"| node_leave_approval
node_leave -->|"sends requests"| node_api
node_leave_approval -->|"sends requests"| node_api
node_api -.->|"calls endpoint"| node_leave_api
node_api -.->|"calls endpoint"| node_leave_status_api
node_user -->|"records attendance"| node_attendance
node_attendance -->|"sends requests"| node_api
node_api -.->|"calls endpoint"| node_attendance_api
node_user -->|"views payroll"| node_payroll
node_payroll -->|"sends requests"| node_api
node_monthly_payroll -->|"sends requests"| node_api
node_api -.->|"calls endpoint"| node_payroll_api
node_api -.->|"calls endpoint"| node_monthly_payroll_api
node_user -->|"allocates tasks"| node_task_alloc
node_user -->|"updates status"| node_task_status
node_task_status -->|"sends requests"| node_api
node_task_alloc -.->|"sends requests"| node_api
node_api -.->|"calls endpoint"| node_task_api
node_performance -->|"sends requests"| node_api
node_api -.->|"calls endpoint"| node_performance_api
node_announcements -->|"sends requests"| node_api
node_api -.->|"calls endpoint"| node_announcements_api
node_leave_api -->|"executes procedures"| node_sqlserver
node_leave_status_api -->|"executes procedures"| node_sqlserver
node_attendance_api -->|"executes procedures"| node_sqlserver
node_task_api -->|"executes procedures"| node_sqlserver
node_leave_api -->|"uses model"| node_employee_model
node_attendance_api -->|"uses model"| node_employee_model
node_task_api -->|"uses model"| node_employee_model

click node_app "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/App.jsx"
click node_layout "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/components/Layout.jsx"
click node_sidebar "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/components/Sidebar.jsx"
click node_api "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/services/api.js"
click node_registration "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeeregistration.jsx"
click node_profiles "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeeprofiles.jsx"
click node_employee_model "https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Models/Employee.cs"
click node_leave "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeeleave.jsx"
click node_leave_approval "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeeleaveapproval.jsx"
click node_leave_api "https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeeLeaveController.cs"
click node_leave_status_api "https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeeLeaveController1.cs"
click node_attendance "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeeattendance.jsx"
click node_attendance_api "https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeeAttendanceController.cs"
click node_payroll "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeepayroll.jsx"
click node_monthly_payroll "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeemonthlypayroll.jsx"
click node_payroll_api "https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeePayrollController.cs"
click node_monthly_payroll_api "https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeeMonthlypayroll.cs"
click node_task_alloc "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeetaskalloc.jsx"
click node_task_status "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeetaskstatusupd.jsx"
click node_task_api "https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeeTaskallocController.cs"
click node_performance "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/EmployeePerfeval.jsx"
click node_performance_api "https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeePerfevalController.cs"
click node_announcements "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeeannouncements.jsx"
click node_announcements_api "https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeeAnnouncementsController.cs"
click node_holidays "https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Holidayslist.jsx"

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_layout,node_sidebar,node_api,node_user toneBlue
class node_registration,node_profiles toneAmber
class node_leave,node_leave_approval,node_attendance,node_payroll,node_monthly_payroll,node_task_alloc,node_task_status,node_performance,node_announcements,node_holidays toneMint
class node_employee_model,node_leave_api,node_leave_status_api,node_attendance_api,node_payroll_api,node_monthly_payroll_api,node_task_api,node_performance_api,node_announcements_api,node_sqlserver toneRose
```

## Components

### Portal interface

- [Routes and access](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/App.jsx): `student-portal-ui/src/App.jsx`
- [Portal shell](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/components/Layout.jsx): `student-portal-ui/src/components/Layout.jsx`
- [Feature navigation](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/components/Sidebar.jsx): `student-portal-ui/src/components/Sidebar.jsx`
- [HTTP client](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/services/api.js): `student-portal-ui/src/services/api.js`

### Employee records

- [Employee registration](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeeregistration.jsx): `student-portal-ui/src/pages/Employeeregistration.jsx`
- [Employee profiles](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeeprofiles.jsx): `student-portal-ui/src/pages/Employeeprofiles.jsx`

### Workforce operations

- [Leave applications](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeeleave.jsx): `student-portal-ui/src/pages/Employeeleave.jsx`
- [Leave approval](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeeleaveapproval.jsx): `student-portal-ui/src/pages/Employeeleaveapproval.jsx`
- [Attendance](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeeattendance.jsx): `student-portal-ui/src/pages/Employeeattendance.jsx`
- [Payroll](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeepayroll.jsx): `student-portal-ui/src/pages/Employeepayroll.jsx`
- [Monthly payroll](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeemonthlypayroll.jsx): `student-portal-ui/src/pages/Employeemonthlypayroll.jsx`
- [Task allocation](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeetaskalloc.jsx): `student-portal-ui/src/pages/Employeetaskalloc.jsx`
- [Task status](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeetaskstatusupd.jsx): `student-portal-ui/src/pages/Employeetaskstatusupd.jsx`
- [Performance evaluation](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/EmployeePerfeval.jsx): `student-portal-ui/src/pages/EmployeePerfeval.jsx`
- [Announcements](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Employeeannouncements.jsx): `student-portal-ui/src/pages/Employeeannouncements.jsx`
- [Holidays](https://github.com/ksmaharajan-creator/firstvs/blob/master/student-portal-ui/src/pages/Holidayslist.jsx): `student-portal-ui/src/pages/Holidayslist.jsx`

### API and persistence

- [Employee model](https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Models/Employee.cs): `StudentPortal/Models/Employee.cs`
- [Leave endpoints](https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeeLeaveController.cs): `StudentPortal/Controllers/EmployeeLeaveController.cs`
- [Leave status endpoints](https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeeLeaveController1.cs): `StudentPortal/Controllers/EmployeeLeaveController1.cs`
- [Attendance endpoints](https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeeAttendanceController.cs): `StudentPortal/Controllers/EmployeeAttendanceController.cs`
- [Payroll endpoints](https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeePayrollController.cs): `StudentPortal/Controllers/EmployeePayrollController.cs`
- [Monthly payroll API](https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeeMonthlypayroll.cs): `StudentPortal/Controllers/EmployeeMonthlypayroll.cs`
- [Task endpoints](https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeeTaskallocController.cs): `StudentPortal/Controllers/EmployeeTaskallocController.cs`
- [Evaluation endpoints](https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeePerfevalController.cs): `StudentPortal/Controllers/EmployeePerfevalController.cs`
- [Announcement endpoints](https://github.com/ksmaharajan-creator/firstvs/blob/master/StudentPortal/Controllers/EmployeeAnnouncementsController.cs): `StudentPortal/Controllers/EmployeeAnnouncementsController.cs`
- **SQL Server**

### Other components

- **Portal user**

## Connections

- Portal user → Routes and access: opens portal (evidence: `student-portal-ui/src/App.jsx`)
- Routes and access → Portal shell: renders shell (evidence: `student-portal-ui/src/App.jsx`)
- Routes and access → Employee registration: routes to (evidence: `student-portal-ui/src/App.jsx`)
- Routes and access → Employee profiles: routes to (evidence: `student-portal-ui/src/App.jsx`)
- Routes and access → Leave applications: routes to (evidence: `student-portal-ui/src/App.jsx`)
- Routes and access → Leave approval: routes to (evidence: `student-portal-ui/src/App.jsx`)
- Routes and access → Attendance: routes to (evidence: `student-portal-ui/src/App.jsx`)
- Routes and access → Payroll: routes to (evidence: `student-portal-ui/src/App.jsx`)
- Routes and access → Monthly payroll: routes to (evidence: `student-portal-ui/src/App.jsx`)
- Routes and access → Task allocation: routes to (evidence: `student-portal-ui/src/App.jsx`)
- Routes and access → Task status: routes to (evidence: `student-portal-ui/src/App.jsx`)
- Routes and access → Performance evaluation: routes to (evidence: `student-portal-ui/src/App.jsx`)
- Routes and access → Announcements: routes to (evidence: `student-portal-ui/src/App.jsx`)
- Routes and access → Holidays: routes to (evidence: `student-portal-ui/src/App.jsx`)
- Portal shell → Feature navigation: renders navigation (evidence: `student-portal-ui/src/components/Layout.jsx`)
- Portal user → Leave applications: submits leave (evidence: `student-portal-ui/src/pages/Employeeleave.jsx`)
- Portal user → Leave approval: reviews requests (evidence: `student-portal-ui/src/pages/Employeeleaveapproval.jsx`)
- Leave applications → HTTP client: sends requests (evidence: `student-portal-ui/src/pages/Employeeleave.jsx`)
- Leave approval → HTTP client: sends requests (evidence: `student-portal-ui/src/pages/Employeeleaveapproval.jsx`)
- HTTP client → Leave endpoints: calls endpoint
- HTTP client → Leave status endpoints: calls endpoint
- Portal user → Attendance: records attendance (evidence: `student-portal-ui/src/pages/Employeeattendance.jsx`)
- Attendance → HTTP client: sends requests (evidence: `student-portal-ui/src/pages/Employeeattendance.jsx`)
- HTTP client → Attendance endpoints: calls endpoint
- Portal user → Payroll: views payroll (evidence: `student-portal-ui/src/pages/Employeepayroll.jsx`)
- Payroll → HTTP client: sends requests (evidence: `student-portal-ui/src/pages/Employeepayroll.jsx`)
- Monthly payroll → HTTP client: sends requests (evidence: `student-portal-ui/src/pages/Employeemonthlypayroll.jsx`)
- HTTP client → Payroll endpoints: calls endpoint
- HTTP client → Monthly payroll API: calls endpoint
- Portal user → Task allocation: allocates tasks
- Portal user → Task status: updates status (evidence: `student-portal-ui/src/pages/Employeetaskstatusupd.jsx`)
- Task status → HTTP client: sends requests (evidence: `student-portal-ui/src/pages/Employeetaskstatusupd.jsx`)
- Task allocation → HTTP client: sends requests
- HTTP client → Task endpoints: calls endpoint
- Performance evaluation → HTTP client: sends requests (evidence: `student-portal-ui/src/pages/EmployeePerfeval.jsx`)
- HTTP client → Evaluation endpoints: calls endpoint
- Announcements → HTTP client: sends requests (evidence: `student-portal-ui/src/pages/Employeeannouncements.jsx`)
- HTTP client → Announcement endpoints: calls endpoint
- Leave endpoints → SQL Server: executes procedures (evidence: `StudentPortal/Controllers/EmployeeLeaveController.cs`)
- Leave status endpoints → SQL Server: executes procedures (evidence: `StudentPortal/Controllers/EmployeeLeaveController1.cs`)
- Attendance endpoints → SQL Server: executes procedures (evidence: `StudentPortal/Controllers/EmployeeAttendanceController.cs`)
- Task endpoints → SQL Server: executes procedures (evidence: `StudentPortal/Controllers/EmployeeTaskallocController.cs`)
- Leave endpoints → Employee model: uses model (evidence: `StudentPortal/Controllers/EmployeeLeaveController.cs`)
- Attendance endpoints → Employee model: uses model (evidence: `StudentPortal/Controllers/EmployeeAttendanceController.cs`)
- Task endpoints → Employee model: uses model (evidence: `StudentPortal/Controllers/EmployeeTaskallocController.cs`)
