# 6grizzly5/taxi_fleet architecture

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

- Interactive diagram: https://gitdiagram.com/6grizzly5/taxi_fleet
- Repository: https://github.com/6grizzly5/taxi_fleet

## Overview

TaxiParking is a Spring Boot fleet, ride-booking, and parking application with web and REST interfaces. The main documented journey is driver registration and admin approval, client ride ordering, driver acceptance and lifecycle updates, and client status review; clients can also reserve parking. The graph combines documented capabilities with relationships visible in the sampled controllers and service reference index. Unsampled controllers and integrations are represented at their existing directory paths; their internal calls are not inferred.

Main entry points: [`src/main/java/com/sio2/taxiparking/controller/web`](https://github.com/6grizzly5/taxi_fleet/tree/main/src/main/java/com/sio2/taxiparking/controller/web) (Web Workflows), [`src/main/java/com/sio2/taxiparking/service/impl/CourseServiceImpl.java`](https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/service/impl/CourseServiceImpl.java) (Ride Lifecycle), [`src/main/java/com/sio2/taxiparking/service/impl/ParkingServiceImpl.java`](https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/service/impl/ParkingServiceImpl.java) (Reservations), [`src/main/java/com/sio2/taxiparking/repository`](https://github.com/6grizzly5/taxi_fleet/tree/main/src/main/java/com/sio2/taxiparking/repository) (JPA Repositories)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and Admin"]
  node_web["Web Workflows"]
  node_rest["REST API"]
  node_security["Authentication"]
  node_chauffeur["Driver Management"]
end

subgraph group_rides["Ride Operations"]
  node_rideui["Ride Web Actions"]
  node_rideapi["Ride REST Actions"]
  node_ridesvc["Ride Lifecycle"]
end

subgraph group_parking["Parking"]
  node_parkingui["Parking Web Actions"]
  node_parkingsvc["Reservations"]
  node_adminparking["Parking Admin"]
end

subgraph group_data["Domain and Persistence"]
  node_domain["Domain Entities"]
  node_repos[("JPA Repositories")]
end

node_client(("Client"))
node_driver(("Driver"))
node_admin(("Admin"))
node_mysql[("MySQL")]

node_client -->|"uses web"| node_web
node_driver -->|"uses web"| node_web
node_admin -->|"uses web"| node_web
node_client -->|"calls API"| node_rest
node_driver -->|"registers"| node_chauffeur
node_admin -->|"approves driver"| node_chauffeur
node_web -.->|"authenticates"| node_security
node_rideui -->|"updates ride"| node_ridesvc
node_rideapi -->|"dispatches ride actions"| node_ridesvc
node_web -->|"orders ride"| node_ridesvc
node_client -->|"checks status"| node_rideui
node_driver -->|"accepts and completes"| node_rideui
node_web -->|"reserves parking"| node_parkingsvc
node_parkingui -.->|"manages booking"| node_parkingsvc
node_adminparking -->|"lists reservations"| node_parkingsvc
node_ridesvc -->|"reads and writes"| node_repos
node_parkingsvc -->|"reads and writes"| node_repos
node_chauffeur -.->|"manages drivers"| node_repos
node_repos -->|"persists entities"| node_domain
node_domain -->|"stored in"| node_mysql

click node_web "https://github.com/6grizzly5/taxi_fleet/tree/main/src/main/java/com/sio2/taxiparking/controller/web"
click node_rest "https://github.com/6grizzly5/taxi_fleet/tree/main/src/main/java/com/sio2/taxiparking/controller/rest"
click node_security "https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/security/SecurityConfig.java"
click node_chauffeur "https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/service/impl/ChauffeurServiceImpl.java"
click node_rideui "https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/controller/web/ChauffeurDashboardController.java"
click node_rideapi "https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/controller/rest/CourseRestController.java"
click node_ridesvc "https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/service/impl/CourseServiceImpl.java"
click node_parkingui "https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/controller/web/ParkingController.java"
click node_parkingsvc "https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/service/impl/ParkingServiceImpl.java"
click node_adminparking "https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/controller/web/AdminController.java"
click node_domain "https://github.com/6grizzly5/taxi_fleet/tree/main/src/main/java/com/sio2/taxiparking/entity"
click node_repos "https://github.com/6grizzly5/taxi_fleet/tree/main/src/main/java/com/sio2/taxiparking/repository"

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_web,node_rest,node_security,node_chauffeur,node_client toneBlue
class node_rideui,node_rideapi,node_ridesvc,node_mysql toneAmber
class node_parkingui,node_parkingsvc,node_adminparking toneMint
class node_domain,node_repos toneRose
class node_driver,node_admin toneIndigo
```

## Components

### Access and Admin

- [Web Workflows](https://github.com/6grizzly5/taxi_fleet/tree/main/src/main/java/com/sio2/taxiparking/controller/web): `src/main/java/com/sio2/taxiparking/controller/web`
- [REST API](https://github.com/6grizzly5/taxi_fleet/tree/main/src/main/java/com/sio2/taxiparking/controller/rest): `src/main/java/com/sio2/taxiparking/controller/rest`
- [Authentication](https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/security/SecurityConfig.java): `src/main/java/com/sio2/taxiparking/security/SecurityConfig.java`
- [Driver Management](https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/service/impl/ChauffeurServiceImpl.java): `src/main/java/com/sio2/taxiparking/service/impl/ChauffeurServiceImpl.java`

### Ride Operations

- [Ride Web Actions](https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/controller/web/ChauffeurDashboardController.java): `src/main/java/com/sio2/taxiparking/controller/web/ChauffeurDashboardController.java`
- [Ride REST Actions](https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/controller/rest/CourseRestController.java): `src/main/java/com/sio2/taxiparking/controller/rest/CourseRestController.java`
- [Ride Lifecycle](https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/service/impl/CourseServiceImpl.java): `src/main/java/com/sio2/taxiparking/service/impl/CourseServiceImpl.java`

### Parking

- [Parking Web Actions](https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/controller/web/ParkingController.java): `src/main/java/com/sio2/taxiparking/controller/web/ParkingController.java`
- [Reservations](https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/service/impl/ParkingServiceImpl.java): `src/main/java/com/sio2/taxiparking/service/impl/ParkingServiceImpl.java`
- [Parking Admin](https://github.com/6grizzly5/taxi_fleet/blob/main/src/main/java/com/sio2/taxiparking/controller/web/AdminController.java): `src/main/java/com/sio2/taxiparking/controller/web/AdminController.java`

### Domain and Persistence

- [Domain Entities](https://github.com/6grizzly5/taxi_fleet/tree/main/src/main/java/com/sio2/taxiparking/entity): `src/main/java/com/sio2/taxiparking/entity`
- [JPA Repositories](https://github.com/6grizzly5/taxi_fleet/tree/main/src/main/java/com/sio2/taxiparking/repository): `src/main/java/com/sio2/taxiparking/repository`

### Other components

- **Client**
- **Driver**
- **Admin**
- **MySQL**

## Connections

- Client → Web Workflows: uses web (evidence: `README.md`)
- Driver → Web Workflows: uses web (evidence: `README.md`)
- Admin → Web Workflows: uses web (evidence: `README.md`)
- Client → REST API: calls API (evidence: `README.md`)
- Driver → Driver Management: registers (evidence: `README.md`)
- Admin → Driver Management: approves driver (evidence: `README.md`)
- Web Workflows → Authentication: authenticates
- Ride Web Actions → Ride Lifecycle: updates ride (evidence: `src/main/java/com/sio2/taxiparking/controller/web/ChauffeurDashboardController.java`)
- Ride REST Actions → Ride Lifecycle: dispatches ride actions (evidence: `src/main/java/com/sio2/taxiparking/controller/rest/CourseRestController.java`)
- Web Workflows → Ride Lifecycle: orders ride (evidence: `README.md`)
- Client → Ride Web Actions: checks status (evidence: `README.md`)
- Driver → Ride Web Actions: accepts and completes (evidence: `README.md`)
- Web Workflows → Reservations: reserves parking (evidence: `README.md`)
- Parking Web Actions → Reservations: manages booking
- Parking Admin → Reservations: lists reservations (evidence: `src/main/java/com/sio2/taxiparking/controller/web/AdminController.java`)
- Ride Lifecycle → JPA Repositories: reads and writes (evidence: `src/main/java/com/sio2/taxiparking/service/impl/CourseServiceImpl.java`)
- Reservations → JPA Repositories: reads and writes (evidence: `src/main/java/com/sio2/taxiparking/service/impl/ParkingServiceImpl.java`)
- Driver Management → JPA Repositories: manages drivers
- JPA Repositories → Domain Entities: persists entities (evidence: `src/main/java/com/sio2/taxiparking/repository/CourseRepository.java`)
- Domain Entities → MySQL: stored in (evidence: `README.md`)
