# xukki241/mma301-30shine-booking architecture

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

- Interactive diagram: https://gitdiagram.com/xukki241/mma301-30shine-booking
- Repository: https://github.com/xukki241/mma301-30shine-booking

## Overview

30Shine Booking is an MVP booking product: customers choose a branch, service, stylist and slot; the appointment is booked, the stylist marks it complete, and the customer makes a simulated payment. Shop Admin assigns work shifts. The README identifies mobile, admin-web, a separate auth service and a single-process Core API. The sampled services expose only health endpoints; Core API domain endpoints are TODO, and app implementation was not sampled, so documented workflow links are README-backed rather than verified runtime calls.

Main entry points: [`apps/mobile`](https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile) (Customer and Stylist App), [`apps/admin-web`](https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/admin-web) (Admin Web)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_booking["Booking flow"]
  node_mobile["Customer and Stylist App"]
  node_branch["Branch Selection"]
  node_service["Service Selection"]
  node_stylist_choice["Stylist Selection"]
  node_slot["Slot Selection"]
  node_appointment["Booked Appointment"]
  node_completion["Service Completion"]
  node_payment["Simulated Payment"]
  node_paid["Paid Appointment"]
end

subgraph group_operations["Shop operations"]
  node_admin_web["Admin Web"]
  node_work_shifts["Work Shifts"]
end

subgraph group_backend["Backend services"]
  node_core_api["Core API<br/>[index.js]"]
  node_auth_service["Auth Service<br/>[index.js]"]
end

node_customer(("Customer"))
node_stylist(("Stylist"))
node_admin(("Shop Admin"))

node_customer -->|"uses"| node_mobile
node_stylist -->|"uses"| node_mobile
node_mobile -->|"selects"| node_branch
node_branch -->|"continues to"| node_service
node_service -->|"continues to"| node_stylist_choice
node_stylist_choice -->|"continues to"| node_slot
node_slot -->|"books"| node_appointment
node_appointment -->|"marks completed"| node_completion
node_completion -->|"pays after"| node_payment
node_payment -->|"marks paid"| node_paid
node_admin -->|"uses"| node_admin_web
node_admin_web -->|"assigns"| node_work_shifts

click node_mobile "https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile"
click node_branch "https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile"
click node_service "https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile"
click node_stylist_choice "https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile"
click node_slot "https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile"
click node_appointment "https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile"
click node_completion "https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile"
click node_payment "https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile"
click node_paid "https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile"
click node_admin_web "https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/admin-web"
click node_work_shifts "https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/admin-web"
click node_core_api "https://github.com/xukki241/mma301-30shine-booking/blob/main/services/core-api/src/index.js"
click node_auth_service "https://github.com/xukki241/mma301-30shine-booking/blob/main/services/auth-service/src/index.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_mobile,node_branch,node_service,node_stylist_choice,node_slot,node_appointment,node_completion,node_payment,node_paid toneBlue
class node_admin_web,node_work_shifts toneAmber
class node_core_api,node_auth_service toneMint
class node_customer,node_stylist,node_admin toneIndigo
```

## Components

### Booking flow

- [Customer and Stylist App](https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile): `apps/mobile`
- [Branch Selection](https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile): `apps/mobile`
- [Service Selection](https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile): `apps/mobile`
- [Stylist Selection](https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile): `apps/mobile`
- [Slot Selection](https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile): `apps/mobile`
- [Booked Appointment](https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile): `apps/mobile`
- [Service Completion](https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile): `apps/mobile`
- [Simulated Payment](https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile): `apps/mobile`
- [Paid Appointment](https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/mobile): `apps/mobile`

### Shop operations

- [Admin Web](https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/admin-web): `apps/admin-web`
- [Work Shifts](https://github.com/xukki241/mma301-30shine-booking/tree/main/apps/admin-web): `apps/admin-web`

### Backend services

- [Core API](https://github.com/xukki241/mma301-30shine-booking/blob/main/services/core-api/src/index.js): `services/core-api/src/index.js`
- [Auth Service](https://github.com/xukki241/mma301-30shine-booking/blob/main/services/auth-service/src/index.js): `services/auth-service/src/index.js`

### Other components

- **Customer**
- **Stylist**
- **Shop Admin**

## Connections

- Customer → Customer and Stylist App: uses (evidence: `README.md`)
- Stylist → Customer and Stylist App: uses (evidence: `README.md`)
- Customer and Stylist App → Branch Selection: selects (evidence: `README.md`)
- Branch Selection → Service Selection: continues to (evidence: `README.md`)
- Service Selection → Stylist Selection: continues to (evidence: `README.md`)
- Stylist Selection → Slot Selection: continues to (evidence: `README.md`)
- Slot Selection → Booked Appointment: books (evidence: `README.md`)
- Booked Appointment → Service Completion: marks completed (evidence: `README.md`)
- Service Completion → Simulated Payment: pays after (evidence: `README.md`)
- Simulated Payment → Paid Appointment: marks paid (evidence: `README.md`)
- Shop Admin → Admin Web: uses (evidence: `README.md`)
- Admin Web → Work Shifts: assigns (evidence: `README.md`)
