# sabharish-eng/smart-campus-management architecture

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

- Interactive diagram: https://gitdiagram.com/sabharish-eng/smart-campus-management
- Repository: https://github.com/sabharish-eng/smart-campus-management

## Overview

Smart Campus Management System is a small Flask application for campus administration. A browser user reaches the dashboard or one of four management workflows: student records, daily attendance, room availability, and notices. Each workflow is implemented in app.py, renders its corresponding template, and reads or updates the shared SQLite database; the dashboard also summarizes campus counts and recent notices. The source excerpt shows route and database behavior, while the README documents the product capabilities. Templates are represented as presentation components, not as independently verified business logic.

Main entry points: [`templates/base.html`](https://github.com/sabharish-eng/smart-campus-management/blob/main/templates/base.html) (Shared page layout), [`app.py`](https://github.com/sabharish-eng/smart-campus-management/blob/main/app.py) (SQLite database), [`templates/dashboard.html`](https://github.com/sabharish-eng/smart-campus-management/blob/main/templates/dashboard.html) (Dashboard view), [`templates/students.html`](https://github.com/sabharish-eng/smart-campus-management/blob/main/templates/students.html) (Student view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_dashboard_view["Dashboard view<br/>[dashboard.html]"]
  node_students_view["Student view<br/>[students.html]"]
  node_attendance_view["Attendance view<br/>[attendance.html]"]
  node_rooms_view["Rooms view<br/>[rooms.html]"]
  node_notices_view["Notices view<br/>[notices.html]"]
  node_shared_layout["Shared page layout<br/>[base.html]"]
end

subgraph group_workflows["Campus workflows"]
  node_dashboard["Dashboard<br/>[app.py]"]
  node_students["Student records<br/>[app.py]"]
  node_attendance["Attendance<br/>[app.py]"]
  node_rooms["Room availability<br/>[app.py]"]
  node_notices["Campus notices<br/>[app.py]"]
end

subgraph group_storage["Persistence"]
  node_sqlite[("SQLite database<br/>[app.py]")]
end

node_browser(("Browser user"))

node_browser -->|"requests"| node_dashboard
node_browser -->|"requests"| node_students
node_browser -->|"requests"| node_attendance
node_browser -->|"requests"| node_rooms
node_browser -->|"requests"| node_notices
node_dashboard -->|"reads counts"| node_sqlite
node_dashboard -->|"renders"| node_dashboard_view
node_students -->|"reads and updates"| node_sqlite
node_students -->|"renders"| node_students_view
node_attendance -->|"reads and updates"| node_sqlite
node_attendance -->|"renders"| node_attendance_view
node_rooms -->|"reads and updates"| node_sqlite
node_rooms -->|"renders"| node_rooms_view
node_notices -->|"reads and updates"| node_sqlite
node_notices -->|"renders"| node_notices_view
node_dashboard_view -.->|"extends"| node_shared_layout
node_students_view -.->|"extends"| node_shared_layout
node_attendance_view -.->|"extends"| node_shared_layout
node_rooms_view -.->|"extends"| node_shared_layout
node_notices_view -.->|"extends"| node_shared_layout

click node_dashboard "https://github.com/sabharish-eng/smart-campus-management/blob/main/app.py"
click node_dashboard_view "https://github.com/sabharish-eng/smart-campus-management/blob/main/templates/dashboard.html"
click node_students "https://github.com/sabharish-eng/smart-campus-management/blob/main/app.py"
click node_students_view "https://github.com/sabharish-eng/smart-campus-management/blob/main/templates/students.html"
click node_attendance "https://github.com/sabharish-eng/smart-campus-management/blob/main/app.py"
click node_attendance_view "https://github.com/sabharish-eng/smart-campus-management/blob/main/templates/attendance.html"
click node_rooms "https://github.com/sabharish-eng/smart-campus-management/blob/main/app.py"
click node_rooms_view "https://github.com/sabharish-eng/smart-campus-management/blob/main/templates/rooms.html"
click node_notices "https://github.com/sabharish-eng/smart-campus-management/blob/main/app.py"
click node_notices_view "https://github.com/sabharish-eng/smart-campus-management/blob/main/templates/notices.html"
click node_shared_layout "https://github.com/sabharish-eng/smart-campus-management/blob/main/templates/base.html"
click node_sqlite "https://github.com/sabharish-eng/smart-campus-management/blob/main/app.py"

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_dashboard_view,node_students_view,node_attendance_view,node_rooms_view,node_notices_view,node_shared_layout,node_browser toneBlue
class node_dashboard,node_students,node_attendance,node_rooms,node_notices toneAmber
class node_sqlite toneMint
```

## Components

### Web interface

- [Dashboard view](https://github.com/sabharish-eng/smart-campus-management/blob/main/templates/dashboard.html): `templates/dashboard.html`
- [Student view](https://github.com/sabharish-eng/smart-campus-management/blob/main/templates/students.html): `templates/students.html`
- [Attendance view](https://github.com/sabharish-eng/smart-campus-management/blob/main/templates/attendance.html): `templates/attendance.html`
- [Rooms view](https://github.com/sabharish-eng/smart-campus-management/blob/main/templates/rooms.html): `templates/rooms.html`
- [Notices view](https://github.com/sabharish-eng/smart-campus-management/blob/main/templates/notices.html): `templates/notices.html`
- [Shared page layout](https://github.com/sabharish-eng/smart-campus-management/blob/main/templates/base.html): `templates/base.html`

### Campus workflows

- [Dashboard](https://github.com/sabharish-eng/smart-campus-management/blob/main/app.py): `app.py`
- [Student records](https://github.com/sabharish-eng/smart-campus-management/blob/main/app.py): `app.py`
- [Attendance](https://github.com/sabharish-eng/smart-campus-management/blob/main/app.py): `app.py`
- [Room availability](https://github.com/sabharish-eng/smart-campus-management/blob/main/app.py): `app.py`
- [Campus notices](https://github.com/sabharish-eng/smart-campus-management/blob/main/app.py): `app.py`

### Persistence

- [SQLite database](https://github.com/sabharish-eng/smart-campus-management/blob/main/app.py): `app.py`

### Other components

- **Browser user**

## Connections

- Browser user → Dashboard: requests (evidence: `app.py`)
- Browser user → Student records: requests (evidence: `app.py`)
- Browser user → Attendance: requests (evidence: `app.py`)
- Browser user → Room availability: requests (evidence: `app.py`)
- Browser user → Campus notices: requests (evidence: `app.py`)
- Dashboard → SQLite database: reads counts (evidence: `app.py`)
- Dashboard → Dashboard view: renders (evidence: `app.py`)
- Student records → SQLite database: reads and updates (evidence: `app.py`)
- Student records → Student view: renders (evidence: `app.py`)
- Attendance → SQLite database: reads and updates (evidence: `app.py`)
- Attendance → Attendance view: renders (evidence: `app.py`)
- Room availability → SQLite database: reads and updates (evidence: `app.py`)
- Room availability → Rooms view: renders (evidence: `app.py`)
- Campus notices → SQLite database: reads and updates (evidence: `app.py`)
- Campus notices → Notices view: renders (evidence: `app.py`)
- Dashboard view → Shared page layout: extends
- Student view → Shared page layout: extends
- Attendance view → Shared page layout: extends
- Rooms view → Shared page layout: extends
- Notices view → Shared page layout: extends
