# eslavathvikram/student_management_system architecture

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

## Overview

This is a cloud-deployable student management web app. A user searches or views student records, edits them through the browser UI, and receives results from the Express API backed by MySQL or a local SQLite fallback. The graph covers the documented CRUD and health-check capabilities, plus database schema and sample data. Deployment and project-report materials are omitted as operational documentation rather than runtime product components; source beyond the supplied excerpts is not inferred.

Main entry points: [`backend/server.js`](https://github.com/eslavathvikram/student_management_system/blob/main/backend/server.js) (Express API), [`frontend/public/app.js`](https://github.com/eslavathvikram/student_management_system/blob/main/frontend/public/app.js) (Student interface), [`backend/db.js`](https://github.com/eslavathvikram/student_management_system/blob/main/backend/db.js) (Database adapter), [`frontend/public/index.html`](https://github.com/eslavathvikram/student_management_system/blob/main/frontend/public/index.html) (Interface shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_ui["Student interface<br/>[app.js]"]
  node_page["Interface shell<br/>[index.html]"]
  node_styles["Interface styling<br/>[style.css]"]
end

subgraph group_api["API and domain"]
  node_api_server["Express API<br/>[server.js]"]
  node_validation["Input validation<br/>[server.js]"]
  node_student_ops["Student CRUD and search<br/>[server.js]"]
  node_health["Health endpoint<br/>[server.js]"]
end

subgraph group_data["Persistence"]
  node_db_adapter["Database adapter<br/>[db.js]"]
  node_mysql[("MySQL store")]
  node_sqlite[("SQLite fallback<br/>[db.js]")]
  node_schema["Student schema<br/>[schema.sql]"]
  node_sample_data["Sample records<br/>[sample_data.sql]"]
end

node_user(("User"))

node_user -->|"uses"| node_ui
node_page -->|"hosts"| node_ui
node_ui -->|"requests"| node_api_server
node_api_server -->|"serves assets"| node_ui
node_ui -.->|"presents with"| node_styles
node_api_server -->|"validates"| node_validation
node_api_server -->|"routes CRUD"| node_student_ops
node_api_server -->|"routes health"| node_health
node_student_ops -->|"queries"| node_db_adapter
node_health -->|"checks"| node_db_adapter
node_db_adapter -->|"connects"| node_mysql
node_db_adapter -->|"falls back"| node_sqlite
node_schema -.->|"defines tables"| node_mysql
node_sample_data -.->|"seeds"| node_mysql

click node_ui "https://github.com/eslavathvikram/student_management_system/blob/main/frontend/public/app.js"
click node_page "https://github.com/eslavathvikram/student_management_system/blob/main/frontend/public/index.html"
click node_styles "https://github.com/eslavathvikram/student_management_system/blob/main/frontend/public/style.css"
click node_api_server "https://github.com/eslavathvikram/student_management_system/blob/main/backend/server.js"
click node_validation "https://github.com/eslavathvikram/student_management_system/blob/main/backend/server.js"
click node_student_ops "https://github.com/eslavathvikram/student_management_system/blob/main/backend/server.js"
click node_health "https://github.com/eslavathvikram/student_management_system/blob/main/backend/server.js"
click node_db_adapter "https://github.com/eslavathvikram/student_management_system/blob/main/backend/db.js"
click node_sqlite "https://github.com/eslavathvikram/student_management_system/blob/main/backend/db.js"
click node_schema "https://github.com/eslavathvikram/student_management_system/blob/main/database/schema.sql"
click node_sample_data "https://github.com/eslavathvikram/student_management_system/blob/main/database/sample_data.sql"

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_ui,node_page,node_styles,node_user toneBlue
class node_api_server,node_validation,node_student_ops,node_health toneAmber
class node_db_adapter,node_mysql,node_sqlite,node_schema,node_sample_data toneMint
```

## Components

### Web interface

- [Student interface](https://github.com/eslavathvikram/student_management_system/blob/main/frontend/public/app.js): `frontend/public/app.js`
- [Interface shell](https://github.com/eslavathvikram/student_management_system/blob/main/frontend/public/index.html): `frontend/public/index.html`
- [Interface styling](https://github.com/eslavathvikram/student_management_system/blob/main/frontend/public/style.css): `frontend/public/style.css`

### API and domain

- [Express API](https://github.com/eslavathvikram/student_management_system/blob/main/backend/server.js): `backend/server.js`
- [Input validation](https://github.com/eslavathvikram/student_management_system/blob/main/backend/server.js): `backend/server.js`
- [Student CRUD and search](https://github.com/eslavathvikram/student_management_system/blob/main/backend/server.js): `backend/server.js`
- [Health endpoint](https://github.com/eslavathvikram/student_management_system/blob/main/backend/server.js): `backend/server.js`

### Persistence

- [Database adapter](https://github.com/eslavathvikram/student_management_system/blob/main/backend/db.js): `backend/db.js`
- **MySQL store**
- [SQLite fallback](https://github.com/eslavathvikram/student_management_system/blob/main/backend/db.js): `backend/db.js`
- [Student schema](https://github.com/eslavathvikram/student_management_system/blob/main/database/schema.sql): `database/schema.sql`
- [Sample records](https://github.com/eslavathvikram/student_management_system/blob/main/database/sample_data.sql): `database/sample_data.sql`

### Other components

- **User**

## Connections

- User → Student interface: uses (evidence: `README.md`)
- Interface shell → Student interface: hosts
- Student interface → Express API: requests (evidence: `frontend/public/app.js`)
- Express API → Student interface: serves assets (evidence: `backend/server.js`)
- Student interface → Interface styling: presents with
- Express API → Input validation: validates (evidence: `backend/server.js`)
- Express API → Student CRUD and search: routes CRUD (evidence: `backend/server.js`)
- Express API → Health endpoint: routes health (evidence: `backend/server.js`)
- Student CRUD and search → Database adapter: queries (evidence: `backend/server.js`)
- Health endpoint → Database adapter: checks (evidence: `backend/server.js`)
- Database adapter → MySQL store: connects (evidence: `backend/db.js`)
- Database adapter → SQLite fallback: falls back (evidence: `backend/db.js`)
- Student schema → MySQL store: defines tables
- Sample records → MySQL store: seeds
