# vinnieph/nobogey architecture

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

- Interactive diagram: https://gitdiagram.com/vinnieph/nobogey
- Repository: https://github.com/vinnieph/nobogey

## Overview

NoBogey is a mobile-first golf caddie booking platform, complemented by club administration and a public website. The principal flow is golfer course and caddie discovery, tee-time selection, then booking with a required caddie; caddies also onboard, manage availability, and respond to bookings. Admins manage fleet and verification, while the public site introduces the product and directs users to get started. The README documents Supabase-backed auth and data flows; sampled source confirms booking RPCs and the mobile Supabase client. Other feature links follow documented app scope, not inspected screen-level calls.

Main entry points: [`apps/mobile/app`](https://github.com/vinnieph/nobogey/tree/main/apps/mobile/app) (Mobile routes), [`apps/admin-web/src/App.tsx`](https://github.com/vinnieph/nobogey/blob/main/apps/admin-web/src/App.tsx) (Admin portal), [`apps/mobile/backend/mock.service.ts`](https://github.com/vinnieph/nobogey/blob/main/apps/mobile/backend/mock.service.ts) (Mobile data adapter), [`apps/mobile/backend/bookings/bookings.service.ts`](https://github.com/vinnieph/nobogey/blob/main/apps/mobile/backend/bookings/bookings.service.ts) (Booking service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mobile["Mobile app"]
  node_mobile_routes["Mobile routes"]
  node_discovery["Course discovery"]
  node_caddie_discovery["Caddie discovery"]
  node_booking_ui["Booking flow"]
  node_caddie_onboarding["Caddie onboarding"]
  node_caddie_ops["Caddie operations"]
  node_alerts["In-app alerts"]
end

subgraph group_admin["Club administration"]
  node_admin_app["Admin portal<br/>[App.tsx]"]
  node_fleet["Fleet management<br/>[fleet.ts]"]
  node_verification["Verification review"]
  node_admin_notifications["Admin notifications<br/>[notifications.ts]"]
end

subgraph group_public["Public website"]
  node_website["Public landing<br/>[App.tsx]"]
  node_get_started["Get started<br/>[GetStartedPage.tsx]"]
  node_phone_mockup["Product preview<br/>[PhoneMockup.tsx]"]
end

subgraph group_backend["Backend services"]
  node_courses["Course catalogue<br/>[courses.service.ts]"]
  node_caddies_service["Caddie data<br/>[caddies.service.ts]"]
  node_booking_service["Booking service"]
  node_mobile_data["Mobile data adapter<br/>[mock.service.ts]"]
  node_mobile_client["Supabase client<br/>[client.ts]"]
  node_auth["Mobile authentication<br/>[auth.service.ts]"]
end

node_golfer(("Golfer"))
node_supabase[("Supabase")]

node_golfer -->|"uses"| node_mobile_routes
node_mobile_routes -->|"offers"| node_discovery
node_discovery -->|"browses"| node_courses
node_mobile_routes -->|"offers"| node_caddie_discovery
node_caddie_discovery -->|"finds caddies"| node_caddies_service
node_mobile_routes -->|"starts booking"| node_booking_ui
node_booking_ui -->|"submits booking"| node_booking_service
node_booking_service -->|"calls RPCs"| node_supabase
node_mobile_data -->|"gets tee times"| node_booking_service
node_mobile_data -->|"queries data"| node_supabase
node_courses -->|"delegates"| node_mobile_data
node_caddies_service -->|"calls RPC"| node_supabase
node_mobile_client -->|"connects"| node_supabase
node_golfer -->|"authenticates"| node_auth
node_auth -->|"uses Auth"| node_supabase
node_mobile_routes -->|"supports"| node_caddie_onboarding
node_mobile_routes -->|"supports"| node_caddie_ops
node_mobile_routes -->|"shows alerts"| node_alerts
node_admin_app -->|"manages"| node_fleet
node_admin_app -->|"reviews"| node_verification
node_admin_app -->|"uses"| node_admin_notifications
node_fleet -->|"reads and writes"| node_supabase
node_verification -->|"reviews records"| node_supabase
node_website -->|"provides links"| node_get_started
node_website -->|"previews app"| node_phone_mockup

click node_mobile_routes "https://github.com/vinnieph/nobogey/tree/main/apps/mobile/app"
click node_discovery "https://github.com/vinnieph/nobogey/tree/main/apps/mobile/src/features/discovery"
click node_courses "https://github.com/vinnieph/nobogey/blob/main/apps/mobile/backend/courses/courses.service.ts"
click node_caddie_discovery "https://github.com/vinnieph/nobogey/blob/main/apps/mobile/src/features/caddies/CaddieListingScreen.tsx"
click node_caddies_service "https://github.com/vinnieph/nobogey/blob/main/apps/mobile/backend/caddies/caddies.service.ts"
click node_booking_ui "https://github.com/vinnieph/nobogey/blob/main/apps/mobile/src/features/booking/TeeTimeSelectionScreen.tsx"
click node_booking_service "https://github.com/vinnieph/nobogey/blob/main/apps/mobile/backend/bookings/bookings.service.ts"
click node_mobile_data "https://github.com/vinnieph/nobogey/blob/main/apps/mobile/backend/mock.service.ts"
click node_mobile_client "https://github.com/vinnieph/nobogey/blob/main/apps/mobile/backend/client.ts"
click node_auth "https://github.com/vinnieph/nobogey/blob/main/apps/mobile/backend/auth/auth.service.ts"
click node_caddie_onboarding "https://github.com/vinnieph/nobogey/blob/main/apps/mobile/src/features/caddie-onboarding/CaddieOnboardingScreen.tsx"
click node_caddie_ops "https://github.com/vinnieph/nobogey/blob/main/apps/mobile/src/features/caddie/CaddieDashboardScreen.tsx"
click node_alerts "https://github.com/vinnieph/nobogey/blob/main/apps/mobile/src/features/notifications/NotificationAlertProvider.tsx"
click node_admin_app "https://github.com/vinnieph/nobogey/blob/main/apps/admin-web/src/App.tsx"
click node_fleet "https://github.com/vinnieph/nobogey/blob/main/apps/admin-web/backend/fleet.ts"
click node_verification "https://github.com/vinnieph/nobogey/blob/main/apps/admin-web/src/features/caddie-verification/CaddieVerificationQueue.tsx"
click node_admin_notifications "https://github.com/vinnieph/nobogey/blob/main/apps/admin-web/backend/notifications.ts"
click node_website "https://github.com/vinnieph/nobogey/blob/main/apps/landing-page/src/App.tsx"
click node_get_started "https://github.com/vinnieph/nobogey/blob/main/apps/landing-page/src/pages/GetStartedPage.tsx"
click node_phone_mockup "https://github.com/vinnieph/nobogey/blob/main/apps/landing-page/src/components/PhoneMockup.tsx"

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_routes,node_discovery,node_caddie_discovery,node_booking_ui,node_caddie_onboarding,node_caddie_ops,node_alerts toneBlue
class node_admin_app,node_fleet,node_verification,node_admin_notifications,node_supabase toneAmber
class node_website,node_get_started,node_phone_mockup toneMint
class node_courses,node_caddies_service,node_booking_service,node_mobile_data,node_mobile_client,node_auth toneRose
class node_golfer toneIndigo
```

## Components

### Mobile app

- [Mobile routes](https://github.com/vinnieph/nobogey/tree/main/apps/mobile/app): `apps/mobile/app`
- [Course discovery](https://github.com/vinnieph/nobogey/tree/main/apps/mobile/src/features/discovery): `apps/mobile/src/features/discovery`
- [Caddie discovery](https://github.com/vinnieph/nobogey/blob/main/apps/mobile/src/features/caddies/CaddieListingScreen.tsx): `apps/mobile/src/features/caddies/CaddieListingScreen.tsx`
- [Booking flow](https://github.com/vinnieph/nobogey/blob/main/apps/mobile/src/features/booking/TeeTimeSelectionScreen.tsx): `apps/mobile/src/features/booking/TeeTimeSelectionScreen.tsx`
- [Caddie onboarding](https://github.com/vinnieph/nobogey/blob/main/apps/mobile/src/features/caddie-onboarding/CaddieOnboardingScreen.tsx): `apps/mobile/src/features/caddie-onboarding/CaddieOnboardingScreen.tsx`
- [Caddie operations](https://github.com/vinnieph/nobogey/blob/main/apps/mobile/src/features/caddie/CaddieDashboardScreen.tsx): `apps/mobile/src/features/caddie/CaddieDashboardScreen.tsx`
- [In-app alerts](https://github.com/vinnieph/nobogey/blob/main/apps/mobile/src/features/notifications/NotificationAlertProvider.tsx): `apps/mobile/src/features/notifications/NotificationAlertProvider.tsx`

### Club administration

- [Admin portal](https://github.com/vinnieph/nobogey/blob/main/apps/admin-web/src/App.tsx): `apps/admin-web/src/App.tsx`
- [Fleet management](https://github.com/vinnieph/nobogey/blob/main/apps/admin-web/backend/fleet.ts): `apps/admin-web/backend/fleet.ts`
- [Verification review](https://github.com/vinnieph/nobogey/blob/main/apps/admin-web/src/features/caddie-verification/CaddieVerificationQueue.tsx): `apps/admin-web/src/features/caddie-verification/CaddieVerificationQueue.tsx`
- [Admin notifications](https://github.com/vinnieph/nobogey/blob/main/apps/admin-web/backend/notifications.ts): `apps/admin-web/backend/notifications.ts`

### Public website

- [Public landing](https://github.com/vinnieph/nobogey/blob/main/apps/landing-page/src/App.tsx): `apps/landing-page/src/App.tsx`
- [Get started](https://github.com/vinnieph/nobogey/blob/main/apps/landing-page/src/pages/GetStartedPage.tsx): `apps/landing-page/src/pages/GetStartedPage.tsx`
- [Product preview](https://github.com/vinnieph/nobogey/blob/main/apps/landing-page/src/components/PhoneMockup.tsx): `apps/landing-page/src/components/PhoneMockup.tsx`

### Backend services

- [Course catalogue](https://github.com/vinnieph/nobogey/blob/main/apps/mobile/backend/courses/courses.service.ts): `apps/mobile/backend/courses/courses.service.ts`
- [Caddie data](https://github.com/vinnieph/nobogey/blob/main/apps/mobile/backend/caddies/caddies.service.ts): `apps/mobile/backend/caddies/caddies.service.ts`
- [Booking service](https://github.com/vinnieph/nobogey/blob/main/apps/mobile/backend/bookings/bookings.service.ts): `apps/mobile/backend/bookings/bookings.service.ts`
- [Mobile data adapter](https://github.com/vinnieph/nobogey/blob/main/apps/mobile/backend/mock.service.ts): `apps/mobile/backend/mock.service.ts`
- [Supabase client](https://github.com/vinnieph/nobogey/blob/main/apps/mobile/backend/client.ts): `apps/mobile/backend/client.ts`
- [Mobile authentication](https://github.com/vinnieph/nobogey/blob/main/apps/mobile/backend/auth/auth.service.ts): `apps/mobile/backend/auth/auth.service.ts`

### Other components

- **Golfer**
- **Supabase**

## Connections

- Golfer → Mobile routes: uses (evidence: `README.md`)
- Mobile routes → Course discovery: offers (evidence: `README.md`)
- Course discovery → Course catalogue: browses (evidence: `README.md`)
- Mobile routes → Caddie discovery: offers (evidence: `README.md`)
- Caddie discovery → Caddie data: finds caddies (evidence: `README.md`)
- Mobile routes → Booking flow: starts booking (evidence: `README.md`)
- Booking flow → Booking service: submits booking (evidence: `README.md`)
- Booking service → Supabase: calls RPCs (evidence: `apps/mobile/backend/bookings/bookings.service.ts`)
- Mobile data adapter → Booking service: gets tee times (evidence: `apps/mobile/backend/mock.service.ts`)
- Mobile data adapter → Supabase: queries data (evidence: `apps/mobile/backend/mock.service.ts`)
- Course catalogue → Mobile data adapter: delegates (evidence: `apps/mobile/backend/courses/courses.service.ts`)
- Caddie data → Supabase: calls RPC (evidence: `apps/mobile/backend/caddies/caddies.service.ts`)
- Supabase client → Supabase: connects (evidence: `apps/mobile/backend/client.ts`)
- Golfer → Mobile authentication: authenticates (evidence: `README.md`)
- Mobile authentication → Supabase: uses Auth (evidence: `apps/mobile/backend/auth/auth.service.ts`)
- Mobile routes → Caddie onboarding: supports (evidence: `README.md`)
- Mobile routes → Caddie operations: supports (evidence: `README.md`)
- Mobile routes → In-app alerts: shows alerts (evidence: `README.md`)
- Admin portal → Fleet management: manages (evidence: `apps/admin-web/src/App.tsx`)
- Admin portal → Verification review: reviews (evidence: `apps/admin-web/src/App.tsx`)
- Admin portal → Admin notifications: uses (evidence: `apps/admin-web/src/App.tsx`)
- Fleet management → Supabase: reads and writes (evidence: `README.md`)
- Verification review → Supabase: reviews records (evidence: `README.md`)
- Public landing → Get started: provides links (evidence: `README.md`)
- Public landing → Product preview: previews app (evidence: `apps/landing-page/src/App.tsx`)
