# basilbarakat15/beauty-salon-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/basilbarakat15/beauty-salon-management-system
- Repository: https://github.com/basilbarakat15/beauty-salon-management-system

## Overview

This is a Java Swing salon-management desktop app. The main workflow starts at the menu and calendar: users manage customers and services, then create and view appointments; the GUI also saves appointment data to a serialized file. Customer, service, and appointment records are the internal domain layer. The README also lists employee management, payments, and analytics, but the sampled source does not show their implementation or connections, so they are not modeled as runtime components.

Main entry points: [`BeautySalonGUI.java`](https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/BeautySalonGUI.java) (Salon dialogs and actions), [`BeautySalonManagementSystem.java`](https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/BeautySalonManagementSystem.java) (Menu and calendar), [`Customer.java`](https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/Customer.java) (Customer records), [`Serivce.java`](https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/Serivce.java) (Service records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_menu["Menu and calendar"]
  node_salon_gui["Salon dialogs and actions"]
end

subgraph group_domain["Salon domain"]
  node_customers["Customer records<br/>[Customer.java]"]
  node_services["Service records<br/>[Serivce.java]"]
  node_appointments["Appointment records<br/>[Appointment.java]"]
end

subgraph group_persistence["Local persistence"]
  node_saved_data[("Serialized appointment data<br/>[outputToday.ser]")]
end

node_user(("Salon user"))

node_user -->|"uses"| node_menu
node_menu -->|"invokes actions"| node_salon_gui
node_salon_gui -->|"creates and edits"| node_customers
node_salon_gui -->|"creates and edits"| node_services
node_salon_gui -->|"creates and views"| node_appointments
node_salon_gui -->|"writes records"| node_saved_data

click node_menu "https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/BeautySalonManagementSystem.java"
click node_salon_gui "https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/BeautySalonGUI.java"
click node_customers "https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/Customer.java"
click node_services "https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/Serivce.java"
click node_appointments "https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/Appointment.java"
click node_saved_data "https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/outputToday.ser"

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_menu,node_salon_gui,node_user toneBlue
class node_customers,node_services,node_appointments toneAmber
class node_saved_data toneMint
```

## Components

### Desktop interface

- [Menu and calendar](https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/BeautySalonManagementSystem.java): `BeautySalonManagementSystem.java`
- [Salon dialogs and actions](https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/BeautySalonGUI.java): `BeautySalonGUI.java`

### Salon domain

- [Customer records](https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/Customer.java): `Customer.java`
- [Service records](https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/Serivce.java): `Serivce.java`
- [Appointment records](https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/Appointment.java): `Appointment.java`

### Local persistence

- [Serialized appointment data](https://github.com/basilbarakat15/beauty-salon-management-system/blob/main/outputToday.ser): `outputToday.ser`

### Other components

- **Salon user**

## Connections

- Salon user → Menu and calendar: uses
- Menu and calendar → Salon dialogs and actions: invokes actions (evidence: `BeautySalonManagementSystem.java`)
- Salon dialogs and actions → Customer records: creates and edits (evidence: `BeautySalonGUI.java`)
- Salon dialogs and actions → Service records: creates and edits (evidence: `BeautySalonGUI.java`)
- Salon dialogs and actions → Appointment records: creates and views (evidence: `BeautySalonGUI.java`)
- Salon dialogs and actions → Serialized appointment data: writes records (evidence: `BeautySalonGUI.java`)
