# keerthivelaga/easywash architecture

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

- Interactive diagram: https://gitdiagram.com/keerthivelaga/easywash
- Repository: https://github.com/keerthivelaga/easywash

## Overview

EasyWash is a PHP/MySQL laundry-booking application for hostel residents. The main journey is account creation or login, then booking a machine and viewing its status or booking history; administrators manage machines and publish notices. The dashboard links users to these capabilities, and the PHP pages access MySQL through a shared connection. The source excerpts show only selected implementation details; other feature coverage and links are based on the README or dashboard navigation.

Main entry points: [`dashboard.php`](https://github.com/keerthivelaga/easywash/blob/main/dashboard.php) (Dashboard), [`db.php`](https://github.com/keerthivelaga/easywash/blob/main/db.php) (Database connection), [`laundry_db.sql`](https://github.com/keerthivelaga/easywash/blob/main/laundry_db.sql) (Laundry database), [`llogin.php`](https://github.com/keerthivelaga/easywash/blob/main/llogin.php) (Login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access &amp; accounts"]
  node_signup["Registration<br/>[signup.php]"]
  node_login["Login<br/>[llogin.php]"]
  node_dashboard["Dashboard<br/>[dashboard.php]"]
end

subgraph group_laundry["Laundry operations"]
  node_booking["Machine booking<br/>[booking.php]"]
  node_tracker["Machine tracker"]
  node_history["Booking history"]
  node_admin["Machine administration<br/>[admin_panel.php]"]
end

subgraph group_communication["User services"]
  node_notifications["Notifications<br/>[notifications.php]"]
  node_profile["User profile<br/>[user_profile.php]"]
  node_faq["Help &amp; FAQ<br/>[help_faq.php]"]
end

subgraph group_data["Persistence"]
  node_connection["Database connection<br/>[db.php]"]
  node_mysql[("Laundry database<br/>[laundry_db.sql]")]
end

node_resident(("Resident"))
node_admin_user(("Administrator"))

node_resident -->|"registers"| node_signup
node_resident -->|"signs in"| node_login
node_resident -->|"views"| node_dashboard
node_admin_user -->|"manages"| node_admin
node_signup -->|"uses"| node_connection
node_login -->|"uses"| node_connection
node_login -->|"redirects user"| node_dashboard
node_login -->|"redirects admin"| node_admin
node_dashboard -->|"links to"| node_booking
node_dashboard -->|"links to"| node_tracker
node_dashboard -->|"links to"| node_history
node_dashboard -->|"links to"| node_notifications
node_dashboard -->|"links to"| node_admin
node_dashboard -->|"links to"| node_profile
node_dashboard -->|"links to"| node_faq
node_booking -->|"uses"| node_connection
node_tracker -->|"uses"| node_connection
node_history -->|"uses"| node_connection
node_admin -->|"uses"| node_connection
node_notifications -->|"uses"| node_connection
node_profile -->|"uses"| node_connection
node_connection -->|"connects"| node_mysql
node_booking -->|"reads and writes"| node_mysql
node_tracker -->|"reads and updates"| node_mysql
node_history -->|"reads and updates"| node_mysql
node_notifications -->|"reads and updates"| node_mysql
node_profile -->|"reads and updates"| node_mysql
node_signup -->|"checks and inserts"| node_mysql

click node_signup "https://github.com/keerthivelaga/easywash/blob/main/signup.php"
click node_login "https://github.com/keerthivelaga/easywash/blob/main/llogin.php"
click node_dashboard "https://github.com/keerthivelaga/easywash/blob/main/dashboard.php"
click node_booking "https://github.com/keerthivelaga/easywash/blob/main/booking.php"
click node_tracker "https://github.com/keerthivelaga/easywash/blob/main/washing_machine_status.php"
click node_history "https://github.com/keerthivelaga/easywash/blob/main/booking_history.php"
click node_admin "https://github.com/keerthivelaga/easywash/blob/main/admin_panel.php"
click node_notifications "https://github.com/keerthivelaga/easywash/blob/main/notifications.php"
click node_profile "https://github.com/keerthivelaga/easywash/blob/main/user_profile.php"
click node_faq "https://github.com/keerthivelaga/easywash/blob/main/help_faq.php"
click node_connection "https://github.com/keerthivelaga/easywash/blob/main/db.php"
click node_mysql "https://github.com/keerthivelaga/easywash/blob/main/laundry_db.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_signup,node_login,node_dashboard toneBlue
class node_booking,node_tracker,node_history,node_admin toneAmber
class node_notifications,node_profile,node_faq toneMint
class node_connection,node_mysql toneRose
class node_resident,node_admin_user toneIndigo
```

## Components

### Access & accounts

- [Registration](https://github.com/keerthivelaga/easywash/blob/main/signup.php): `signup.php`
- [Login](https://github.com/keerthivelaga/easywash/blob/main/llogin.php): `llogin.php`
- [Dashboard](https://github.com/keerthivelaga/easywash/blob/main/dashboard.php): `dashboard.php`

### Laundry operations

- [Machine booking](https://github.com/keerthivelaga/easywash/blob/main/booking.php): `booking.php`
- [Machine tracker](https://github.com/keerthivelaga/easywash/blob/main/washing_machine_status.php): `washing_machine_status.php`
- [Booking history](https://github.com/keerthivelaga/easywash/blob/main/booking_history.php): `booking_history.php`
- [Machine administration](https://github.com/keerthivelaga/easywash/blob/main/admin_panel.php): `admin_panel.php`

### User services

- [Notifications](https://github.com/keerthivelaga/easywash/blob/main/notifications.php): `notifications.php`
- [User profile](https://github.com/keerthivelaga/easywash/blob/main/user_profile.php): `user_profile.php`
- [Help & FAQ](https://github.com/keerthivelaga/easywash/blob/main/help_faq.php): `help_faq.php`

### Persistence

- [Database connection](https://github.com/keerthivelaga/easywash/blob/main/db.php): `db.php`
- [Laundry database](https://github.com/keerthivelaga/easywash/blob/main/laundry_db.sql): `laundry_db.sql`

### Other components

- **Resident**
- **Administrator**

## Connections

- Resident → Registration: registers (evidence: `README.md`)
- Resident → Login: signs in (evidence: `README.md`)
- Resident → Dashboard: views (evidence: `dashboard.php`)
- Administrator → Machine administration: manages (evidence: `README.md`)
- Registration → Database connection: uses (evidence: `signup.php`)
- Login → Database connection: uses (evidence: `llogin.php`)
- Login → Dashboard: redirects user (evidence: `llogin.php`)
- Login → Machine administration: redirects admin (evidence: `llogin.php`)
- Dashboard → Machine booking: links to (evidence: `dashboard.php`)
- Dashboard → Machine tracker: links to (evidence: `dashboard.php`)
- Dashboard → Booking history: links to (evidence: `dashboard.php`)
- Dashboard → Notifications: links to (evidence: `dashboard.php`)
- Dashboard → Machine administration: links to (evidence: `dashboard.php`)
- Dashboard → User profile: links to (evidence: `dashboard.php`)
- Dashboard → Help & FAQ: links to (evidence: `dashboard.php`)
- Machine booking → Database connection: uses (evidence: `booking.php`)
- Machine tracker → Database connection: uses (evidence: `washing_machine_status.php`)
- Booking history → Database connection: uses (evidence: `booking_history.php`)
- Machine administration → Database connection: uses (evidence: `admin_panel.php`)
- Notifications → Database connection: uses (evidence: `notifications.php`)
- User profile → Database connection: uses (evidence: `user_profile.php`)
- Database connection → Laundry database: connects (evidence: `db.php`)
- Machine booking → Laundry database: reads and writes (evidence: `booking.php`)
- Machine tracker → Laundry database: reads and updates (evidence: `washing_machine_status.php`)
- Booking history → Laundry database: reads and updates (evidence: `booking_history.php`)
- Notifications → Laundry database: reads and updates (evidence: `notifications.php`)
- User profile → Laundry database: reads and updates (evidence: `user_profile.php`)
- Registration → Laundry database: checks and inserts (evidence: `signup.php`)
