# mohammedyousef-code/internship-management-system architecture

> Architecture diagram of the GitHub repository mohammedyousef-code/internship-management-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mohammedyousef-code/internship-management-system
- Repository: https://github.com/mohammedyousef-code/internship-management-system

## Overview

This is an internship-management application with a React client and Laravel API. Its central workflow moves from account creation and internship applications through administrator acceptance and stage assignment, then report submission, supervisor review, and evaluation. The graph also retains administration, dashboards, exports, notifications, and attestation capabilities visible in the source tree. Source excerpts show several backend interactions; other connections are omitted where the sampled material does not establish them.

Main entry points: [`stage_back/app/Models`](https://github.com/mohammedyousef-code/internship-management-system/tree/main/stage_back/app/Models) (Internship records), [`stage_back/app/Services/NotificationService.php`](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Services/NotificationService.php) (Notifications), [`stage_back/app/Http/Controllers/AuthController.php`](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/AuthController.php) (Authentication), [`stage_back/app/Http/Controllers/Admin/CandidatureController.php`](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/Admin/CandidatureController.php) (Applications)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["React client"]
  node_frontend["Web application<br/>[App.jsx]"]
  node_frontend_api["API services"]
end

subgraph group_identity["Identity and access"]
  node_auth["Authentication<br/>[AuthController.php]"]
  node_users[("Users and profiles<br/>[User.php]")]
end

subgraph group_internship["Internship lifecycle"]
  node_applications["Applications"]
  node_application_service["Application service"]
  node_domain_models[("Internship records")]
  node_reports_submit["Report submission"]
  node_reports_review["Report review"]
  node_evaluations["Evaluations"]
end

subgraph group_operations["Administration and operations"]
  node_notifications["Notifications"]
  node_notification_api["Notification API"]
  node_admin_ops["Admin management"]
  node_dashboards["Role dashboards"]
  node_exports["Data exports<br/>[ExportService.php]"]
  node_attestations["Attestations"]
  node_scheduled["Scheduled reminders"]
end

node_stagiaire(("Intern applicant"))
node_admin(("Administrator"))
node_encadrant(("Supervisor"))

node_stagiaire -->|"registers"| node_auth
node_auth -->|"creates and authenticates"| node_users
node_auth -->|"creates profile"| node_domain_models
node_admin -.->|"reviews"| node_applications
node_applications -->|"updates application and stage"| node_domain_models
node_applications -->|"notifies"| node_notifications
node_stagiaire -.->|"submits report"| node_reports_submit
node_reports_submit -->|"stores report"| node_domain_models
node_reports_submit -->|"notifies supervisor"| node_notifications
node_encadrant -.->|"reviews report"| node_reports_review
node_reports_review -->|"updates report"| node_domain_models
node_reports_review -->|"notifies intern"| node_notifications
node_encadrant -.->|"evaluates intern"| node_evaluations
node_evaluations -->|"records evaluation"| node_domain_models
node_evaluations -->|"notifies"| node_notifications
node_notification_api -->|"reads notifications"| node_domain_models
node_frontend -.->|"uses services"| node_frontend_api

click node_frontend "https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_front/src/App.jsx"
click node_frontend_api "https://github.com/mohammedyousef-code/internship-management-system/tree/main/stage_front/src/api/services"
click node_auth "https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/AuthController.php"
click node_users "https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Models/User.php"
click node_applications "https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/Admin/CandidatureController.php"
click node_application_service "https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Services/CandidatureService.php"
click node_domain_models "https://github.com/mohammedyousef-code/internship-management-system/tree/main/stage_back/app/Models"
click node_reports_submit "https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/Stagiaire/RapportController.php"
click node_reports_review "https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/Encadrant/RapportController.php"
click node_evaluations "https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/Encadrant/EvaluationController.php"
click node_notifications "https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Services/NotificationService.php"
click node_notification_api "https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/NotificationController.php"
click node_admin_ops "https://github.com/mohammedyousef-code/internship-management-system/tree/main/stage_back/app/Http/Controllers/Admin"
click node_dashboards "https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/Admin/DashboardController.php"
click node_exports "https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Services/ExportService.php"
click node_attestations "https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Services/AttestationService.php"
click node_scheduled "https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Console/Commands/EnvoyerRappelsFinStage.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_frontend,node_frontend_api toneBlue
class node_auth,node_users toneAmber
class node_applications,node_application_service,node_domain_models,node_reports_submit,node_reports_review,node_evaluations toneMint
class node_notifications,node_notification_api,node_admin_ops,node_dashboards,node_exports,node_attestations,node_scheduled toneRose
class node_stagiaire,node_admin,node_encadrant toneIndigo
```

## Components

### React client

- [Web application](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_front/src/App.jsx): `stage_front/src/App.jsx`
- [API services](https://github.com/mohammedyousef-code/internship-management-system/tree/main/stage_front/src/api/services): `stage_front/src/api/services`

### Identity and access

- [Authentication](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/AuthController.php): `stage_back/app/Http/Controllers/AuthController.php`
- [Users and profiles](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Models/User.php): `stage_back/app/Models/User.php`

### Internship lifecycle

- [Applications](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/Admin/CandidatureController.php): `stage_back/app/Http/Controllers/Admin/CandidatureController.php`
- [Application service](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Services/CandidatureService.php): `stage_back/app/Services/CandidatureService.php`
- [Internship records](https://github.com/mohammedyousef-code/internship-management-system/tree/main/stage_back/app/Models): `stage_back/app/Models`
- [Report submission](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/Stagiaire/RapportController.php): `stage_back/app/Http/Controllers/Stagiaire/RapportController.php`
- [Report review](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/Encadrant/RapportController.php): `stage_back/app/Http/Controllers/Encadrant/RapportController.php`
- [Evaluations](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/Encadrant/EvaluationController.php): `stage_back/app/Http/Controllers/Encadrant/EvaluationController.php`

### Administration and operations

- [Notifications](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Services/NotificationService.php): `stage_back/app/Services/NotificationService.php`
- [Notification API](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/NotificationController.php): `stage_back/app/Http/Controllers/NotificationController.php`
- [Admin management](https://github.com/mohammedyousef-code/internship-management-system/tree/main/stage_back/app/Http/Controllers/Admin): `stage_back/app/Http/Controllers/Admin`
- [Role dashboards](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Http/Controllers/Admin/DashboardController.php): `stage_back/app/Http/Controllers/Admin/DashboardController.php`
- [Data exports](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Services/ExportService.php): `stage_back/app/Services/ExportService.php`
- [Attestations](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Services/AttestationService.php): `stage_back/app/Services/AttestationService.php`
- [Scheduled reminders](https://github.com/mohammedyousef-code/internship-management-system/blob/main/stage_back/app/Console/Commands/EnvoyerRappelsFinStage.php): `stage_back/app/Console/Commands/EnvoyerRappelsFinStage.php`

### Other components

- **Intern applicant**
- **Administrator**
- **Supervisor**

## Connections

- Intern applicant → Authentication: registers (evidence: `stage_back/app/Http/Controllers/AuthController.php`)
- Authentication → Users and profiles: creates and authenticates (evidence: `stage_back/app/Http/Controllers/AuthController.php`)
- Authentication → Internship records: creates profile (evidence: `stage_back/app/Http/Controllers/AuthController.php`)
- Administrator → Applications: reviews
- Applications → Internship records: updates application and stage (evidence: `stage_back/app/Http/Controllers/Admin/CandidatureController.php`)
- Applications → Notifications: notifies (evidence: `stage_back/app/Http/Controllers/Admin/CandidatureController.php`)
- Intern applicant → Report submission: submits report
- Report submission → Internship records: stores report (evidence: `stage_back/app/Http/Controllers/Stagiaire/RapportController.php`)
- Report submission → Notifications: notifies supervisor (evidence: `stage_back/app/Http/Controllers/Stagiaire/RapportController.php`)
- Supervisor → Report review: reviews report
- Report review → Internship records: updates report (evidence: `stage_back/app/Http/Controllers/Encadrant/RapportController.php`)
- Report review → Notifications: notifies intern (evidence: `stage_back/app/Http/Controllers/Encadrant/RapportController.php`)
- Supervisor → Evaluations: evaluates intern
- Evaluations → Internship records: records evaluation (evidence: `stage_back/app/Http/Controllers/Encadrant/EvaluationController.php`)
- Evaluations → Notifications: notifies (evidence: `stage_back/app/Http/Controllers/Encadrant/EvaluationController.php`)
- Notification API → Internship records: reads notifications (evidence: `stage_back/app/Http/Controllers/NotificationController.php`)
- Web application → API services: uses services
