# sats10-s/careerconnect architecture

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

- Interactive diagram: https://gitdiagram.com/sats10-s/careerconnect
- Repository: https://github.com/sats10-s/careerconnect

## Overview

CareerConnect is a career-services portal for students, faculty, placement staff, super admins, and recruiting companies. Its user-facing flow is a React SPA calling a Laravel API: users authenticate, receive role-specific access, and use portal workflows such as browsing opportunities and applying. The backend also contains placement-drive, attendance, internship-coordination, reporting, import/export, and company-management modules. The README describes an initial foundation and marks several of these features as future work, while the tree and sampled references show substantial feature code; unsampled implementation details and links are left out.

Main entry points: [`backend/routes/api.php`](https://github.com/sats10-s/careerconnect/blob/student-import/backend/routes/api.php) (API routes), [`backend/app/Services/Auth/AuthService.php`](https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Services/Auth/AuthService.php) (Auth service), [`backend/app/Http/Controllers/Api/AuthController.php`](https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Http/Controllers/Api/AuthController.php) (Auth endpoints), [`frontend/src/App.tsx`](https://github.com/sats10-s/careerconnect/blob/student-import/frontend/src/App.tsx) (React SPA)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Portal client"]
  node_spa["React SPA<br/>[App.tsx]"]
  node_auth_ui["Auth client<br/>[authService.ts]"]
end

subgraph group_access["Identity and access"]
  node_api_routes["API routes<br/>[api.php]"]
  node_auth_controller["Auth endpoints<br/>[AuthController.php]"]
  node_auth_service["Auth service<br/>[AuthService.php]"]
  node_role_gate["Role middleware"]
  node_user_store[("Accounts and roles<br/>[User.php]")]
end

subgraph group_careers["Career workflows"]
  node_student_model[("Student records<br/>[Student.php]")]
  node_opportunity_api["Opportunity API"]
  node_application_service["Application lifecycle"]
  node_application_model[("Applications<br/>[Application.php]")]
  node_company_posting["Company postings"]
end

subgraph group_operations["Placement operations"]
  node_placement_api["Placement drives"]
  node_drive_service["Drive service"]
  node_attendance_api["Attendance"]
  node_reporting["Reporting services"]
  node_excel["Excel workflows"]
end

node_user(("Portal user"))

node_user -->|"uses"| node_spa
node_spa -->|"requests auth"| node_auth_ui
node_auth_ui -->|"calls API"| node_auth_controller
node_api_routes -->|"routes auth"| node_auth_controller
node_auth_controller -->|"delegates auth"| node_auth_service
node_auth_service -->|"checks account"| node_user_store
node_auth_service -->|"looks up student"| node_student_model
node_api_routes -->|"gates role routes"| node_role_gate
node_api_routes -->|"routes opportunities"| node_opportunity_api
node_opportunity_api -->|"delegates applications"| node_application_service
node_application_service -->|"manages lifecycle"| node_application_model
node_api_routes -->|"routes postings"| node_company_posting
node_api_routes -->|"routes drives"| node_placement_api
node_placement_api -->|"delegates drive work"| node_drive_service
node_api_routes -->|"routes attendance"| node_attendance_api
node_api_routes -->|"routes reports"| node_reporting
node_api_routes -->|"routes imports"| node_excel

click node_spa "https://github.com/sats10-s/careerconnect/blob/student-import/frontend/src/App.tsx"
click node_auth_ui "https://github.com/sats10-s/careerconnect/blob/student-import/frontend/src/services/authService.ts"
click node_api_routes "https://github.com/sats10-s/careerconnect/blob/student-import/backend/routes/api.php"
click node_auth_controller "https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Http/Controllers/Api/AuthController.php"
click node_auth_service "https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Services/Auth/AuthService.php"
click node_role_gate "https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Http/Middleware/EnsureUserHasRole.php"
click node_user_store "https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Models/User.php"
click node_student_model "https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Models/Student.php"
click node_opportunity_api "https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Http/Controllers/Api/Student/OpportunityController.php"
click node_application_service "https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Services/ApplicationService.php"
click node_application_model "https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Models/Application.php"
click node_company_posting "https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Http/Controllers/Api/Company/PostingController.php"
click node_placement_api "https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Http/Controllers/Api/Admin/PlacementDriveController.php"
click node_drive_service "https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Services/PlacementDriveService.php"
click node_attendance_api "https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Http/Controllers/Api/Faculty/AttendanceController.php"
click node_reporting "https://github.com/sats10-s/careerconnect/tree/student-import/backend/app/Services/Reporting"
click node_excel "https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Services/ExcelImportService.php"

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_spa,node_auth_ui,node_user toneBlue
class node_api_routes,node_auth_controller,node_auth_service,node_role_gate,node_user_store toneAmber
class node_student_model,node_opportunity_api,node_application_service,node_application_model,node_company_posting toneMint
class node_placement_api,node_drive_service,node_attendance_api,node_reporting,node_excel toneRose
```

## Components

### Portal client

- [React SPA](https://github.com/sats10-s/careerconnect/blob/student-import/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Auth client](https://github.com/sats10-s/careerconnect/blob/student-import/frontend/src/services/authService.ts): `frontend/src/services/authService.ts`

### Identity and access

- [API routes](https://github.com/sats10-s/careerconnect/blob/student-import/backend/routes/api.php): `backend/routes/api.php`
- [Auth endpoints](https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Http/Controllers/Api/AuthController.php): `backend/app/Http/Controllers/Api/AuthController.php`
- [Auth service](https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Services/Auth/AuthService.php): `backend/app/Services/Auth/AuthService.php`
- [Role middleware](https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Http/Middleware/EnsureUserHasRole.php): `backend/app/Http/Middleware/EnsureUserHasRole.php`
- [Accounts and roles](https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Models/User.php): `backend/app/Models/User.php`

### Career workflows

- [Student records](https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Models/Student.php): `backend/app/Models/Student.php`
- [Opportunity API](https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Http/Controllers/Api/Student/OpportunityController.php): `backend/app/Http/Controllers/Api/Student/OpportunityController.php`
- [Application lifecycle](https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Services/ApplicationService.php): `backend/app/Services/ApplicationService.php`
- [Applications](https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Models/Application.php): `backend/app/Models/Application.php`
- [Company postings](https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Http/Controllers/Api/Company/PostingController.php): `backend/app/Http/Controllers/Api/Company/PostingController.php`

### Placement operations

- [Placement drives](https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Http/Controllers/Api/Admin/PlacementDriveController.php): `backend/app/Http/Controllers/Api/Admin/PlacementDriveController.php`
- [Drive service](https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Services/PlacementDriveService.php): `backend/app/Services/PlacementDriveService.php`
- [Attendance](https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Http/Controllers/Api/Faculty/AttendanceController.php): `backend/app/Http/Controllers/Api/Faculty/AttendanceController.php`
- [Reporting services](https://github.com/sats10-s/careerconnect/tree/student-import/backend/app/Services/Reporting): `backend/app/Services/Reporting`
- [Excel workflows](https://github.com/sats10-s/careerconnect/blob/student-import/backend/app/Services/ExcelImportService.php): `backend/app/Services/ExcelImportService.php`

### Other components

- **Portal user**

## Connections

- Portal user → React SPA: uses (evidence: `README.md`)
- React SPA → Auth client: requests auth (evidence: `frontend/src/App.tsx`)
- Auth client → Auth endpoints: calls API (evidence: `README.md`)
- API routes → Auth endpoints: routes auth (evidence: `backend/routes/api.php`)
- Auth endpoints → Auth service: delegates auth (evidence: `backend/app/Http/Controllers/Api/AuthController.php`)
- Auth service → Accounts and roles: checks account (evidence: `backend/app/Services/Auth/AuthService.php`)
- Auth service → Student records: looks up student (evidence: `backend/app/Services/Auth/AuthService.php`)
- API routes → Role middleware: gates role routes (evidence: `README.md`)
- API routes → Opportunity API: routes opportunities (evidence: `backend/routes/api.php`)
- Opportunity API → Application lifecycle: delegates applications (evidence: `backend/app/Http/Controllers/Api/Student/OpportunityController.php`)
- Application lifecycle → Applications: manages lifecycle (evidence: `backend/app/Models/Application.php`)
- API routes → Company postings: routes postings (evidence: `backend/routes/api.php`)
- API routes → Placement drives: routes drives (evidence: `backend/routes/api.php`)
- Placement drives → Drive service: delegates drive work (evidence: `backend/app/Http/Controllers/Api/Admin/PlacementDriveController.php`)
- API routes → Attendance: routes attendance (evidence: `backend/routes/api.php`)
- API routes → Reporting services: routes reports (evidence: `backend/routes/api.php`)
- API routes → Excel workflows: routes imports (evidence: `backend/routes/api.php`)
