# silvioivanio/sps-group18-internship-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/silvioivanio/sps-group18-internship-management-system
- Repository: https://github.com/silvioivanio/sps-group18-internship-management-system

## Overview

DIMS is a multi-role internship-management web application. Users interact with role-specific pages in a vanilla-JavaScript SPA, which exchanges JSON or form data with PHP endpoints; the endpoints read and write MySQL-backed accounts, vacancies, applications, placements, logbooks, evaluations, profiles, and notifications. Document uploads also use server-side file storage. The excerpts show several frontend requests and API-to-database dependencies; other documented capabilities are represented where present in the tree, but their frontend wiring was not sampled.

Main entry points: [`js/app.js`](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/js/app.js) (Role-based SPA), [`api/db.php`](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/db.php) (Database connection), [`api/applications.php`](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/applications.php) (Applications and placements), [`api/documents.php`](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/documents.php) (Document upload)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web experience"]
  node_spa["Role-based SPA<br/>[app.js]"]
  node_entry["Web entry page<br/>[index.html]"]
end

subgraph group_api["PHP services"]
  node_auth["Login and registration<br/>[login.php]"]
  node_registration["Profile setup<br/>[register.php]"]
  node_profile["Profile service<br/>[profile.php]"]
  node_vacancies["Vacancy management<br/>[vacancies.php]"]
  node_applications["Applications and placements<br/>[applications.php]"]
  node_logbooks["Logbook reviews<br/>[logbooks.php]"]
  node_evaluations["Internship evaluations<br/>[evaluations.php]"]
  node_notifications["Notifications<br/>[notifications.php]"]
  node_documents["Document upload<br/>[documents.php]"]
end

subgraph group_data["Persistence"]
  node_database[("MySQL database<br/>[schema.sql]")]
  node_connection["Database connection<br/>[db.php]"]
end

subgraph group_files["Document storage"]
  node_uploads["Uploaded documents"]
end

node_users(("Students, employers, staff"))

node_users -->|"opens"| node_entry
node_entry -.->|"loads"| node_spa
node_spa -.->|"authenticates"| node_auth
node_spa -->|"fetches profile"| node_profile
node_spa -->|"fetches vacancies"| node_vacancies
node_spa -->|"submits applications"| node_applications
node_spa -->|"polls notifications"| node_notifications
node_spa -.->|"manages logbooks"| node_logbooks
node_spa -.->|"manages evaluations"| node_evaluations
node_spa -.->|"uploads documents"| node_documents
node_auth -->|"uses"| node_connection
node_registration -->|"uses"| node_connection
node_profile -->|"uses"| node_connection
node_vacancies -->|"uses"| node_connection
node_applications -->|"uses"| node_connection
node_logbooks -->|"uses"| node_connection
node_evaluations -->|"uses"| node_connection
node_notifications -->|"uses"| node_connection
node_documents -->|"uses"| node_connection
node_connection -->|"connects"| node_database
node_documents -->|"stores files"| node_uploads
node_applications -->|"creates placements"| node_database

click node_spa "https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/js/app.js"
click node_entry "https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/index.html"
click node_auth "https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/login.php"
click node_registration "https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/register.php"
click node_profile "https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/profile.php"
click node_vacancies "https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/vacancies.php"
click node_applications "https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/applications.php"
click node_logbooks "https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/logbooks.php"
click node_evaluations "https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/evaluations.php"
click node_notifications "https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/notifications.php"
click node_documents "https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/documents.php"
click node_database "https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/db/schema.sql"
click node_connection "https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/db.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_entry toneBlue
class node_auth,node_registration,node_profile,node_vacancies,node_applications,node_logbooks,node_evaluations,node_notifications,node_documents toneAmber
class node_database,node_connection toneMint
class node_uploads toneRose
class node_users toneIndigo
```

## Components

### Web experience

- [Role-based SPA](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/js/app.js): `js/app.js`
- [Web entry page](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/index.html): `index.html`

### PHP services

- [Login and registration](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/login.php): `api/login.php`
- [Profile setup](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/register.php): `api/register.php`
- [Profile service](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/profile.php): `api/profile.php`
- [Vacancy management](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/vacancies.php): `api/vacancies.php`
- [Applications and placements](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/applications.php): `api/applications.php`
- [Logbook reviews](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/logbooks.php): `api/logbooks.php`
- [Internship evaluations](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/evaluations.php): `api/evaluations.php`
- [Notifications](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/notifications.php): `api/notifications.php`
- [Document upload](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/documents.php): `api/documents.php`

### Persistence

- [MySQL database](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/db/schema.sql): `db/schema.sql`
- [Database connection](https://github.com/silvioivanio/sps-group18-internship-management-system/blob/main/api/db.php): `api/db.php`

### Document storage

- **Uploaded documents**

### Other components

- **Students, employers, staff**

## Connections

- Students, employers, staff → Web entry page: opens (evidence: `README.md`)
- Web entry page → Role-based SPA: loads
- Role-based SPA → Login and registration: authenticates
- Role-based SPA → Profile service: fetches profile (evidence: `js/app.js`)
- Role-based SPA → Vacancy management: fetches vacancies (evidence: `js/app.js`)
- Role-based SPA → Applications and placements: submits applications (evidence: `js/app.js`)
- Role-based SPA → Notifications: polls notifications (evidence: `js/app.js`)
- Role-based SPA → Logbook reviews: manages logbooks
- Role-based SPA → Internship evaluations: manages evaluations
- Role-based SPA → Document upload: uploads documents
- Login and registration → Database connection: uses (evidence: `api/login.php`)
- Profile setup → Database connection: uses (evidence: `api/register.php`)
- Profile service → Database connection: uses (evidence: `api/profile.php`)
- Vacancy management → Database connection: uses (evidence: `api/vacancies.php`)
- Applications and placements → Database connection: uses (evidence: `api/applications.php`)
- Logbook reviews → Database connection: uses (evidence: `api/logbooks.php`)
- Internship evaluations → Database connection: uses (evidence: `api/evaluations.php`)
- Notifications → Database connection: uses (evidence: `api/notifications.php`)
- Document upload → Database connection: uses (evidence: `api/documents.php`)
- Database connection → MySQL database: connects (evidence: `api/db.php`)
- Document upload → Uploaded documents: stores files (evidence: `api/documents.php`)
- Applications and placements → MySQL database: creates placements (evidence: `api/applications.php`)
