# indra-py456/laundry-management-system_u architecture

> Architecture diagram of the GitHub repository indra-py456/laundry-management-system_u, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/indra-py456/laundry-management-system_u
- Repository: https://github.com/indra-py456/laundry-management-system_u

## Overview

WashFlow is a laundry management system for staff to manage customers, orders, payment and processing status, and business summaries. The apparent workflow is staff sign-in, customer and laundry-order management, then tracking and reviewing operational results. The backend excerpt places these capabilities in one Express server and connects it to MySQL. Frontend pages are identified by the file tree, but their contents and API calls were not sampled; UI-to-API links are therefore marked unverified.

Main entry points: [`backend/server.js`](https://github.com/indra-py456/laundry-management-system_u/blob/main/backend/server.js) (Order management), [`frontend/login.html`](https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/login.html) (Sign-in page), [`frontend/dashboard.html`](https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/dashboard.html) (Dashboard page), [`frontend/customers.html`](https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/customers.html) (Customer pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Staff interface"]
  node_login["Sign-in page<br/>[login.html]"]
  node_dashboard_ui["Dashboard page<br/>[dashboard.html]"]
  node_customers_ui["Customer pages<br/>[customers.html]"]
  node_newcustomer_ui["New customer<br/>[newcustomer.html]"]
  node_orders_ui["Order pages<br/>[orders.html]"]
  node_neworder_ui["New order<br/>[neworder.html]"]
  node_details_ui["Order details<br/>[orderdetails.html]"]
end

subgraph group_operations["Laundry operations"]
  node_customer_ops["Customer records<br/>[server.js]"]
  node_order_ops["Order management<br/>[server.js]"]
  node_auth["Authentication<br/>[server.js]"]
end

subgraph group_insights["Business insights"]
  node_dashboard["Dashboard metrics<br/>[server.js]"]
  node_reports["Reports<br/>[server.js]"]
end

node_staff(("Staff"))
node_mysql[("MySQL database")]

node_staff -.->|"opens"| node_login
node_staff -.->|"reviews"| node_dashboard_ui
node_staff -.->|"manages"| node_customers_ui
node_staff -.->|"manages"| node_orders_ui
node_staff -.->|"creates"| node_newcustomer_ui
node_staff -.->|"creates"| node_neworder_ui
node_staff -.->|"reviews"| node_details_ui
node_login -.->|"submits credentials"| node_auth
node_customers_ui -.->|"requests records"| node_customer_ops
node_newcustomer_ui -.->|"submits customer"| node_customer_ops
node_orders_ui -.->|"requests orders"| node_order_ops
node_neworder_ui -.->|"submits order"| node_order_ops
node_details_ui -.->|"requests details"| node_order_ops
node_dashboard_ui -.->|"requests metrics"| node_dashboard
node_auth -->|"queries users"| node_mysql
node_customer_ops -->|"reads and writes"| node_mysql
node_order_ops -->|"reads and writes"| node_mysql
node_dashboard -->|"aggregates orders"| node_mysql
node_reports -->|"aggregates orders"| node_mysql

click node_login "https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/login.html"
click node_dashboard_ui "https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/dashboard.html"
click node_customers_ui "https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/customers.html"
click node_newcustomer_ui "https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/newcustomer.html"
click node_orders_ui "https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/orders.html"
click node_neworder_ui "https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/neworder.html"
click node_details_ui "https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/orderdetails.html"
click node_customer_ops "https://github.com/indra-py456/laundry-management-system_u/blob/main/backend/server.js"
click node_order_ops "https://github.com/indra-py456/laundry-management-system_u/blob/main/backend/server.js"
click node_auth "https://github.com/indra-py456/laundry-management-system_u/blob/main/backend/server.js"
click node_dashboard "https://github.com/indra-py456/laundry-management-system_u/blob/main/backend/server.js"
click node_reports "https://github.com/indra-py456/laundry-management-system_u/blob/main/backend/server.js"

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_login,node_dashboard_ui,node_customers_ui,node_newcustomer_ui,node_orders_ui,node_neworder_ui,node_details_ui toneBlue
class node_customer_ops,node_order_ops,node_auth,node_mysql toneAmber
class node_dashboard,node_reports toneMint
class node_staff toneIndigo
```

## Components

### Staff interface

- [Sign-in page](https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/login.html): `frontend/login.html`
- [Dashboard page](https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/dashboard.html): `frontend/dashboard.html`
- [Customer pages](https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/customers.html): `frontend/customers.html`
- [New customer](https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/newcustomer.html): `frontend/newcustomer.html`
- [Order pages](https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/orders.html): `frontend/orders.html`
- [New order](https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/neworder.html): `frontend/neworder.html`
- [Order details](https://github.com/indra-py456/laundry-management-system_u/blob/main/frontend/orderdetails.html): `frontend/orderdetails.html`

### Laundry operations

- [Customer records](https://github.com/indra-py456/laundry-management-system_u/blob/main/backend/server.js): `backend/server.js`
- [Order management](https://github.com/indra-py456/laundry-management-system_u/blob/main/backend/server.js): `backend/server.js`
- [Authentication](https://github.com/indra-py456/laundry-management-system_u/blob/main/backend/server.js): `backend/server.js`

### Business insights

- [Dashboard metrics](https://github.com/indra-py456/laundry-management-system_u/blob/main/backend/server.js): `backend/server.js`
- [Reports](https://github.com/indra-py456/laundry-management-system_u/blob/main/backend/server.js): `backend/server.js`

### Other components

- **Staff**
- **MySQL database**

## Connections

- Staff → Sign-in page: opens
- Staff → Dashboard page: reviews
- Staff → Customer pages: manages
- Staff → Order pages: manages
- Staff → New customer: creates
- Staff → New order: creates
- Staff → Order details: reviews
- Sign-in page → Authentication: submits credentials
- Customer pages → Customer records: requests records
- New customer → Customer records: submits customer
- Order pages → Order management: requests orders
- New order → Order management: submits order
- Order details → Order management: requests details
- Dashboard page → Dashboard metrics: requests metrics
- Authentication → MySQL database: queries users (evidence: `backend/server.js`)
- Customer records → MySQL database: reads and writes (evidence: `backend/server.js`)
- Order management → MySQL database: reads and writes (evidence: `backend/server.js`)
- Dashboard metrics → MySQL database: aggregates orders (evidence: `backend/server.js`)
- Reports → MySQL database: aggregates orders (evidence: `backend/server.js`)
