# tanjir217/british-standard-driving-academy architecture

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

- Interactive diagram: https://gitdiagram.com/tanjir217/british-standard-driving-academy
- Repository: https://github.com/tanjir217/british-standard-driving-academy

## Overview

British Standard Driving Academy is a React multi-page driving-school demo. Visitors explore lesson paths, instructors and packages, then submit a booking inquiry and choose a demo payment method; students can use the login flow and preview portal. Routing is explicit, and the sampled booking and package services use Wix. The README identifies calendar availability, payment processing and a fully authenticated portal as future integrations, not current capabilities. Unsampled service modules are included as mapped subsystems, but their internal calls are not inferred.

Main entry points: [`src/App.tsx`](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/App.tsx) (Route dispatcher), [`src/pages/Home.tsx`](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/Home.tsx) (Home page), [`src/data/site.ts`](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/data/site.ts) (Academy content), [`src/services/auth/authService.ts`](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/auth/authService.ts) (Member authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Public experience"]
  node_app["Route dispatcher<br/>[App.tsx]"]
  node_home["Home page<br/>[Home.tsx]"]
  node_lessons["Lesson paths<br/>[Lessons.tsx]"]
  node_instructors["Instructor directory<br/>[Instructors.tsx]"]
  node_instructor_detail["Instructor detail"]
  node_faq["FAQ page<br/>[FAQ.tsx]"]
  node_site_data["Academy content<br/>[site.ts]"]
  node_faq_section["FAQ accordion<br/>[FAQSection.tsx]"]
  node_social_feed["Social feed<br/>[SocialFeed.tsx]"]
  node_video_showcase["Video showcase<br/>[VideoShowcase.tsx]"]
end

subgraph group_booking["Booking and catalog"]
  node_booking_page["Booking inquiry<br/>[Booking.tsx]"]
  node_packages_page["Package selection<br/>[Packages.tsx]"]
end

subgraph group_student["Student access"]
  node_login["Login and registration<br/>[Login.tsx]"]
  node_auth_callback["Auth callback<br/>[AuthCallback.tsx]"]
  node_portal["Learning portal<br/>[Portal.tsx]"]
end

subgraph group_services["Application services"]
  node_package_service["Package service<br/>[packageService.ts]"]
  node_booking_service["Booking service<br/>[bookingService.ts]"]
  node_lesson_service["Lesson service<br/>[lessonService.ts]"]
  node_instructor_service["Instructor service"]
  node_student_service["Student service<br/>[studentService.ts]"]
  node_payment_service["Payment service<br/>[paymentService.ts]"]
  node_auth_service["Member authentication<br/>[authService.ts]"]
end

subgraph group_integration["Wix integration"]
  node_wix_client["Wix client<br/>[client.ts]"]
end

node_visitor(("Visitor"))
node_wix["Wix platform"]

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_booking_page
node_app -->|"routes to"| node_packages_page
node_app -->|"routes to"| node_lessons
node_app -->|"routes to"| node_instructors
node_app -->|"routes to"| node_instructor_detail
node_app -->|"routes to"| node_faq
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_auth_callback
node_app -->|"routes to"| node_portal
node_home -->|"reads content"| node_site_data
node_home -->|"renders"| node_faq_section
node_home -->|"renders"| node_social_feed
node_home -->|"renders"| node_video_showcase
node_faq -->|"renders"| node_faq_section
node_faq_section -->|"reads FAQs"| node_site_data
node_lessons -->|"reads content"| node_site_data
node_instructors -->|"reads content"| node_site_data
node_instructor_detail -->|"reads content"| node_site_data
node_booking_page -->|"loads packages"| node_package_service
node_booking_page -->|"submits inquiry"| node_booking_service
node_packages_page -->|"loads packages"| node_package_service
node_packages_page -->|"uses bookings"| node_booking_service
node_package_service -->|"queries plans"| node_wix_client
node_booking_service -->|"queries bookings"| node_wix_client
node_login -->|"authenticates"| node_auth_service
node_auth_callback -->|"completes login"| node_auth_service
node_portal -->|"checks session"| node_auth_service
node_auth_service -->|"uses auth"| node_wix_client
node_wix_client -.->|"calls platform"| node_wix

click node_app "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/App.tsx"
click node_home "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/Home.tsx"
click node_lessons "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/Lessons.tsx"
click node_instructors "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/Instructors.tsx"
click node_instructor_detail "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/InstructorDetail.tsx"
click node_faq "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/FAQ.tsx"
click node_site_data "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/data/site.ts"
click node_faq_section "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/components/FAQSection.tsx"
click node_social_feed "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/components/SocialFeed.tsx"
click node_video_showcase "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/components/VideoShowcase.tsx"
click node_booking_page "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/Booking.tsx"
click node_packages_page "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/Packages.tsx"
click node_package_service "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/packages/packageService.ts"
click node_booking_service "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/bookings/bookingService.ts"
click node_lesson_service "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/lessons/lessonService.ts"
click node_instructor_service "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/instructors/instructorService.ts"
click node_student_service "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/students/studentService.ts"
click node_payment_service "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/payments/paymentService.ts"
click node_login "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/Login.tsx"
click node_auth_callback "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/AuthCallback.tsx"
click node_portal "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/Portal.tsx"
click node_auth_service "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/auth/authService.ts"
click node_wix_client "https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/wix/client.ts"

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_app,node_home,node_lessons,node_instructors,node_instructor_detail,node_faq,node_site_data,node_faq_section,node_social_feed,node_video_showcase toneBlue
class node_booking_page,node_packages_page toneAmber
class node_login,node_auth_callback,node_portal toneMint
class node_package_service,node_booking_service,node_lesson_service,node_instructor_service,node_student_service,node_payment_service,node_auth_service toneRose
class node_wix_client,node_visitor,node_wix toneIndigo
```

## Components

### Public experience

- [Route dispatcher](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/App.tsx): `src/App.tsx`
- [Home page](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/Home.tsx): `src/pages/Home.tsx`
- [Lesson paths](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/Lessons.tsx): `src/pages/Lessons.tsx`
- [Instructor directory](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/Instructors.tsx): `src/pages/Instructors.tsx`
- [Instructor detail](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/InstructorDetail.tsx): `src/pages/InstructorDetail.tsx`
- [FAQ page](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/FAQ.tsx): `src/pages/FAQ.tsx`
- [Academy content](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/data/site.ts): `src/data/site.ts`
- [FAQ accordion](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/components/FAQSection.tsx): `src/components/FAQSection.tsx`
- [Social feed](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/components/SocialFeed.tsx): `src/components/SocialFeed.tsx`
- [Video showcase](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/components/VideoShowcase.tsx): `src/components/VideoShowcase.tsx`

### Booking and catalog

- [Booking inquiry](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/Booking.tsx): `src/pages/Booking.tsx`
- [Package selection](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/Packages.tsx): `src/pages/Packages.tsx`

### Student access

- [Login and registration](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/Login.tsx): `src/pages/Login.tsx`
- [Auth callback](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/AuthCallback.tsx): `src/pages/AuthCallback.tsx`
- [Learning portal](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/pages/Portal.tsx): `src/pages/Portal.tsx`

### Application services

- [Package service](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/packages/packageService.ts): `src/services/packages/packageService.ts`
- [Booking service](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/bookings/bookingService.ts): `src/services/bookings/bookingService.ts`
- [Lesson service](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/lessons/lessonService.ts): `src/services/lessons/lessonService.ts`
- [Instructor service](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/instructors/instructorService.ts): `src/services/instructors/instructorService.ts`
- [Student service](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/students/studentService.ts): `src/services/students/studentService.ts`
- [Payment service](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/payments/paymentService.ts): `src/services/payments/paymentService.ts`
- [Member authentication](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/auth/authService.ts): `src/services/auth/authService.ts`

### Wix integration

- [Wix client](https://github.com/tanjir217/british-standard-driving-academy/blob/main/src/services/wix/client.ts): `src/services/wix/client.ts`

### Other components

- **Visitor**
- **Wix platform**

## Connections

- Visitor → Route dispatcher: opens (evidence: `src/App.tsx`)
- Route dispatcher → Home page: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Booking inquiry: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Package selection: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Lesson paths: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Instructor directory: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Instructor detail: routes to (evidence: `src/App.tsx`)
- Route dispatcher → FAQ page: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Login and registration: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Auth callback: routes to (evidence: `src/App.tsx`)
- Route dispatcher → Learning portal: routes to (evidence: `src/App.tsx`)
- Home page → Academy content: reads content (evidence: `src/pages/Home.tsx`)
- Home page → FAQ accordion: renders (evidence: `src/pages/Home.tsx`)
- Home page → Social feed: renders (evidence: `src/pages/Home.tsx`)
- Home page → Video showcase: renders (evidence: `src/pages/Home.tsx`)
- FAQ page → FAQ accordion: renders (evidence: `src/pages/FAQ.tsx`)
- FAQ accordion → Academy content: reads FAQs (evidence: `src/components/FAQSection.tsx`)
- Lesson paths → Academy content: reads content (evidence: `src/pages/Lessons.tsx`)
- Instructor directory → Academy content: reads content (evidence: `src/pages/Instructors.tsx`)
- Instructor detail → Academy content: reads content (evidence: `src/pages/InstructorDetail.tsx`)
- Booking inquiry → Package service: loads packages (evidence: `src/pages/Booking.tsx`)
- Booking inquiry → Booking service: submits inquiry (evidence: `src/pages/Booking.tsx`)
- Package selection → Package service: loads packages (evidence: `src/pages/Packages.tsx`)
- Package selection → Booking service: uses bookings (evidence: `src/pages/Packages.tsx`)
- Package service → Wix client: queries plans (evidence: `src/services/packages/packageService.ts`)
- Booking service → Wix client: queries bookings (evidence: `src/services/bookings/bookingService.ts`)
- Login and registration → Member authentication: authenticates (evidence: `src/pages/Login.tsx`)
- Auth callback → Member authentication: completes login (evidence: `src/pages/AuthCallback.tsx`)
- Learning portal → Member authentication: checks session (evidence: `src/pages/Portal.tsx`)
- Member authentication → Wix client: uses auth (evidence: `src/services/auth/authService.ts`)
- Wix client → Wix platform: calls platform
