# shootx/autopass architecture

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

- Interactive diagram: https://gitdiagram.com/shootx/autopass
- Repository: https://github.com/shootx/autopass

## Overview

GeoWash is a car-wash booking and loyalty product with customer, wash-manager, partner, and administrator experiences. Customers use the web app to manage vehicles and discover branches, book washes, buy packages or shop rewards, and manage reviews and points; managers handle bookings and wash operations, while administrators manage users and the business catalog. The repository also includes a voucher-checking app. The graph reflects documented modules and indexed references; several feature areas are represented at directory level because their implementation was not sampled.

Main entry points: [`gewash/src/App.tsx`](https://github.com/shootx/autopass/blob/main/gewash/src/App.tsx) (GeoWash app), [`backend/app/Http/Controllers/Admin/ClientsController.php`](https://github.com/shootx/autopass/blob/main/backend/app/Http/Controllers/Admin/ClientsController.php) (Client management), [`gewash/src/components/pages/Manager`](https://github.com/shootx/autopass/tree/main/gewash/src/components/pages/Manager) (Manager features), [`gewash/src/components/pages/Customer/WashApointment.tsx`](https://github.com/shootx/autopass/blob/main/gewash/src/components/pages/Customer/WashApointment.tsx) (Wash booking)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Customer experience"]
  node_webapp["GeoWash app<br/>[App.tsx]"]
  node_customer_features["Customer features"]
  node_home["Branch discovery<br/>[Home.tsx]"]
  node_booking["Wash booking<br/>[WashApointment.tsx]"]
  node_car_profile["Cars and profile"]
end

subgraph group_operations["Wash operations"]
  node_manager_features["Manager features"]
  node_manager_calendar["Manager calendar"]
  node_manager_stats["Wash statistics"]
end

subgraph group_backend["Backend services"]
  node_backend_api["API controllers"]
  node_auth["Authentication<br/>[AuthController.php]"]
  node_appointments["Appointments<br/>[Appointment.php]"]
  node_users[("User accounts<br/>[User.php]")]
  node_cars[("Car catalog<br/>[CarModel.php]")]
  node_branches[("Wash branches<br/>[CarWash.php]")]
  node_reviews[("Reviews<br/>[Review.php]")]
  node_push["Push notifications<br/>[SendPush.php]"]
end

subgraph group_commerce["Packages and rewards"]
  node_packages[("Wash packages<br/>[Package.php]")]
  node_user_packages[("Customer packages<br/>[UserPackage.php]")]
  node_shop["Shop and points<br/>[ShopPage.tsx]"]
  node_vouchers[("Vouchers<br/>[Voucher.php]")]
  node_voucher_checker["Voucher checker<br/>[App.tsx]"]
  node_payments["Payment callback"]
end

subgraph group_admin["Administration"]
  node_admin_ui["Admin console"]
  node_client_admin["Client management"]
end

node_customer(("Customer"))

node_customer -.->|"uses"| node_webapp
node_webapp -->|"renders"| node_home
node_webapp -->|"renders"| node_shop
node_webapp -->|"routes to"| node_manager_features
node_manager_calendar -.->|"supports"| node_manager_features
node_webapp -->|"routes to"| node_customer_features
node_client_admin -->|"queries and updates"| node_users
node_client_admin -->|"queries"| node_cars
node_client_admin -->|"queries"| node_packages
node_client_admin -->|"creates and updates"| node_user_packages
node_backend_api -->|"handles reviews"| node_reviews
node_backend_api -.->|"serves booking"| node_appointments
node_auth -.->|"authenticates"| node_users
node_payments -->|"updates subscription"| node_user_packages
node_payments -->|"reads package"| node_packages
node_users -->|"dispatches"| node_push
node_manager_features -.->|"uses"| node_manager_calendar
node_manager_features -.->|"includes"| node_manager_stats
node_shop -.->|"offers"| node_vouchers
node_voucher_checker -.->|"checks"| node_vouchers
node_booking -.->|"creates"| node_appointments
node_booking -.->|"selects"| node_branches
node_booking -.->|"uses vehicle"| node_cars
node_admin_ui -.->|"routes to"| node_client_admin

click node_webapp "https://github.com/shootx/autopass/blob/main/gewash/src/App.tsx"
click node_customer_features "https://github.com/shootx/autopass/tree/main/gewash/src/components/pages/Customer"
click node_home "https://github.com/shootx/autopass/blob/main/gewash/src/components/pages/Home.tsx"
click node_booking "https://github.com/shootx/autopass/blob/main/gewash/src/components/pages/Customer/WashApointment.tsx"
click node_car_profile "https://github.com/shootx/autopass/tree/main/gewash/src/components/pages/Customer"
click node_manager_features "https://github.com/shootx/autopass/tree/main/gewash/src/components/pages/Manager"
click node_manager_calendar "https://github.com/shootx/autopass/blob/main/gewash/src/components/Calendars/ManagerCalendar.tsx"
click node_manager_stats "https://github.com/shootx/autopass/blob/main/gewash/src/components/pages/Manager/ManagerCarwashStatistics.tsx"
click node_backend_api "https://github.com/shootx/autopass/tree/main/backend/app/Http/Controllers/Api"
click node_auth "https://github.com/shootx/autopass/blob/main/backend/app/Http/Controllers/Api/AuthController.php"
click node_appointments "https://github.com/shootx/autopass/blob/main/backend/app/Models/Appointment.php"
click node_users "https://github.com/shootx/autopass/blob/main/backend/app/Models/User.php"
click node_cars "https://github.com/shootx/autopass/blob/main/backend/app/Models/CarModel.php"
click node_branches "https://github.com/shootx/autopass/blob/main/backend/app/Models/CarWash.php"
click node_reviews "https://github.com/shootx/autopass/blob/main/backend/app/Models/Review.php"
click node_packages "https://github.com/shootx/autopass/blob/main/backend/app/Models/Package.php"
click node_user_packages "https://github.com/shootx/autopass/blob/main/backend/app/Models/UserPackage.php"
click node_shop "https://github.com/shootx/autopass/blob/main/gewash/src/components/pages/Customer/ShopPage.tsx"
click node_vouchers "https://github.com/shootx/autopass/blob/main/backend/app/Models/Voucher.php"
click node_voucher_checker "https://github.com/shootx/autopass/blob/main/gewash/voucher-checker/src/App.tsx"
click node_payments "https://github.com/shootx/autopass/blob/main/backend/app/Http/Controllers/WebHook/FlittWebHookController.php"
click node_admin_ui "https://github.com/shootx/autopass/tree/main/backend/app/Http/Controllers/Admin"
click node_client_admin "https://github.com/shootx/autopass/blob/main/backend/app/Http/Controllers/Admin/ClientsController.php"
click node_push "https://github.com/shootx/autopass/blob/main/backend/app/Jobs/SendPush.php"

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_webapp,node_customer_features,node_home,node_booking,node_car_profile toneBlue
class node_manager_features,node_manager_calendar,node_manager_stats toneAmber
class node_backend_api,node_auth,node_appointments,node_users,node_cars,node_branches,node_reviews,node_push toneMint
class node_packages,node_user_packages,node_shop,node_vouchers,node_voucher_checker,node_payments toneRose
class node_admin_ui,node_client_admin,node_customer toneIndigo
```

## Components

### Customer experience

- [GeoWash app](https://github.com/shootx/autopass/blob/main/gewash/src/App.tsx): `gewash/src/App.tsx`
- [Customer features](https://github.com/shootx/autopass/tree/main/gewash/src/components/pages/Customer): `gewash/src/components/pages/Customer`
- [Branch discovery](https://github.com/shootx/autopass/blob/main/gewash/src/components/pages/Home.tsx): `gewash/src/components/pages/Home.tsx`
- [Wash booking](https://github.com/shootx/autopass/blob/main/gewash/src/components/pages/Customer/WashApointment.tsx): `gewash/src/components/pages/Customer/WashApointment.tsx`
- [Cars and profile](https://github.com/shootx/autopass/tree/main/gewash/src/components/pages/Customer): `gewash/src/components/pages/Customer`

### Wash operations

- [Manager features](https://github.com/shootx/autopass/tree/main/gewash/src/components/pages/Manager): `gewash/src/components/pages/Manager`
- [Manager calendar](https://github.com/shootx/autopass/blob/main/gewash/src/components/Calendars/ManagerCalendar.tsx): `gewash/src/components/Calendars/ManagerCalendar.tsx`
- [Wash statistics](https://github.com/shootx/autopass/blob/main/gewash/src/components/pages/Manager/ManagerCarwashStatistics.tsx): `gewash/src/components/pages/Manager/ManagerCarwashStatistics.tsx`

### Backend services

- [API controllers](https://github.com/shootx/autopass/tree/main/backend/app/Http/Controllers/Api): `backend/app/Http/Controllers/Api`
- [Authentication](https://github.com/shootx/autopass/blob/main/backend/app/Http/Controllers/Api/AuthController.php): `backend/app/Http/Controllers/Api/AuthController.php`
- [Appointments](https://github.com/shootx/autopass/blob/main/backend/app/Models/Appointment.php): `backend/app/Models/Appointment.php`
- [User accounts](https://github.com/shootx/autopass/blob/main/backend/app/Models/User.php): `backend/app/Models/User.php`
- [Car catalog](https://github.com/shootx/autopass/blob/main/backend/app/Models/CarModel.php): `backend/app/Models/CarModel.php`
- [Wash branches](https://github.com/shootx/autopass/blob/main/backend/app/Models/CarWash.php): `backend/app/Models/CarWash.php`
- [Reviews](https://github.com/shootx/autopass/blob/main/backend/app/Models/Review.php): `backend/app/Models/Review.php`
- [Push notifications](https://github.com/shootx/autopass/blob/main/backend/app/Jobs/SendPush.php): `backend/app/Jobs/SendPush.php`

### Packages and rewards

- [Wash packages](https://github.com/shootx/autopass/blob/main/backend/app/Models/Package.php): `backend/app/Models/Package.php`
- [Customer packages](https://github.com/shootx/autopass/blob/main/backend/app/Models/UserPackage.php): `backend/app/Models/UserPackage.php`
- [Shop and points](https://github.com/shootx/autopass/blob/main/gewash/src/components/pages/Customer/ShopPage.tsx): `gewash/src/components/pages/Customer/ShopPage.tsx`
- [Vouchers](https://github.com/shootx/autopass/blob/main/backend/app/Models/Voucher.php): `backend/app/Models/Voucher.php`
- [Voucher checker](https://github.com/shootx/autopass/blob/main/gewash/voucher-checker/src/App.tsx): `gewash/voucher-checker/src/App.tsx`
- [Payment callback](https://github.com/shootx/autopass/blob/main/backend/app/Http/Controllers/WebHook/FlittWebHookController.php): `backend/app/Http/Controllers/WebHook/FlittWebHookController.php`

### Administration

- [Admin console](https://github.com/shootx/autopass/tree/main/backend/app/Http/Controllers/Admin): `backend/app/Http/Controllers/Admin`
- [Client management](https://github.com/shootx/autopass/blob/main/backend/app/Http/Controllers/Admin/ClientsController.php): `backend/app/Http/Controllers/Admin/ClientsController.php`

### Other components

- **Customer**

## Connections

- Customer → GeoWash app: uses
- GeoWash app → Branch discovery: renders (evidence: `gewash/src/App.tsx`)
- GeoWash app → Shop and points: renders (evidence: `gewash/src/App.tsx`)
- GeoWash app → Manager features: routes to (evidence: `gewash/src/App.tsx`)
- Manager calendar → Manager features: supports
- GeoWash app → Customer features: routes to (evidence: `gewash/src/App.tsx`)
- Client management → User accounts: queries and updates (evidence: `backend/app/Http/Controllers/Admin/ClientsController.php`)
- Client management → Car catalog: queries (evidence: `backend/app/Http/Controllers/Admin/ClientsController.php`)
- Client management → Wash packages: queries (evidence: `backend/app/Http/Controllers/Admin/ClientsController.php`)
- Client management → Customer packages: creates and updates (evidence: `backend/app/Http/Controllers/Admin/ClientsController.php`)
- API controllers → Reviews: handles reviews (evidence: `backend/app/Http/Controllers/Api/ReviewsController.php`)
- API controllers → Appointments: serves booking
- Authentication → User accounts: authenticates
- Payment callback → Customer packages: updates subscription (evidence: `backend/app/Http/Controllers/WebHook/FlittWebHookController.php`)
- Payment callback → Wash packages: reads package (evidence: `backend/app/Http/Controllers/WebHook/FlittWebHookController.php`)
- User accounts → Push notifications: dispatches (evidence: `backend/app/Models/User.php`)
- Manager features → Manager calendar: uses
- Manager features → Wash statistics: includes
- Shop and points → Vouchers: offers
- Voucher checker → Vouchers: checks
- Wash booking → Appointments: creates
- Wash booking → Wash branches: selects
- Wash booking → Car catalog: uses vehicle
- Admin console → Client management: routes to
