# harsha-19/spotbukk architecture

> Architecture diagram of the GitHub repository harsha-19/spotbukk, 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/harsha-19/spotbukk
- Repository: https://github.com/harsha-19/spotbukk

## Overview

SpotBukk is an event discovery, ticketing, payment, and venue-entry platform with public guest, staff, and organizer portals. The main guest path is discovery and category browsing → event details and registration → checkout/payment verification → digital pass; staff and admin support operational check-in and event oversight. The map combines sampled frontend calls, route declarations, and README-documented backend capabilities. Backend details beyond its server and mock-registration files are not fully shown, so documented backend links are marked unverified where needed.

Main entry points: [`frontend/src/app/core/services/event.service.ts`](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/core/services/event.service.ts) (Event and Booking Service), [`backend/server.js`](https://github.com/harsha-19/spotbukk/blob/master/backend/server.js) (Express API), [`frontend/src/app/public/home/home.component.ts`](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/public/home/home.component.ts) (Home Discovery), [`frontend/src/app/core/services/payment.service.ts`](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/core/services/payment.service.ts) (Payment Service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guest["Guest Experience"]
  node_home["Home Discovery<br/>[home.component.ts]"]
  node_events["Event Browsing"]
  node_category["Category Pages"]
  node_detail["Event Details"]
  node_registration["Registration"]
  node_checkout["Checkout"]
  node_pass["Digital Pass"]
end

subgraph group_ticketing["Ticketing Core"]
  node_category_svc["Category Catalog"]
  node_event_svc["Event and Booking Service<br/>[event.service.ts]"]
  node_category_seed["Category and Event Seeds"]
  node_payment_svc["Payment Service<br/>[payment.service.ts]"]
end

subgraph group_operations["Venue Operations"]
  node_admin["Organizer Admin"]
  node_event_admin["Event Publishing"]
  node_ledger["Registration Ledger"]
  node_scanner["QR Door Scanner"]
  node_staff["Staff Portal"]
  node_staff_data[("Staff Check-in Data")]
end

subgraph group_platform["Identity and Backend"]
  node_auth["Authentication Service<br/>[auth.service.ts]"]
  node_backend["Express API<br/>[server.js]"]
  node_mock_regs["Mock Registrations"]
end

node_guest(("Guest"))
node_razorpay["Razorpay"]

node_guest -->|"browses"| node_home
node_home -.->|"opens discovery"| node_events
node_home -->|"explores categories"| node_category
node_events -->|"loads events"| node_event_svc
node_category -->|"filters categories"| node_category_svc
node_category_svc -->|"reads events"| node_event_svc
node_category_seed -->|"seeds catalog"| node_category_svc
node_home -->|"loads featured events"| node_event_svc
node_detail -->|"loads event"| node_event_svc
node_registration -->|"creates booking"| node_event_svc
node_checkout -->|"starts payment"| node_payment_svc
node_payment_svc -->|"requests order and verification"| node_backend
node_payment_svc -->|"opens checkout"| node_razorpay
node_backend -.->|"creates and verifies orders"| node_razorpay
node_checkout -.->|"routes after payment"| node_pass
node_event_admin -->|"publishes events"| node_event_svc
node_admin -->|"reads event metrics"| node_event_svc
node_ledger -->|"reads registrations"| node_event_svc
node_scanner -->|"verifies QR"| node_event_svc
node_event_svc -->|"posts QR verification"| node_backend
node_staff -->|"validates and checks in"| node_staff_data
node_staff_data -.->|"loads seed data"| node_mock_regs
node_auth -->|"authenticates users"| node_backend
node_admin -.->|"checks session"| node_auth
node_staff -.->|"checks session"| node_auth
node_backend -->|"loads mock registrations"| node_mock_regs

click node_home "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/public/home/home.component.ts"
click node_events "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/public/events/events.component.ts"
click node_category "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/public/category-events/category-events.component.ts"
click node_detail "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/public/event-detail/event-detail.component.ts"
click node_registration "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/public/registration/registration.component.ts"
click node_checkout "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/public/checkout/checkout.component.ts"
click node_pass "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/public/ticket/ticket.component.ts"
click node_category_svc "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/core/services/category.service.ts"
click node_event_svc "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/core/services/event.service.ts"
click node_category_seed "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/core/data/category-seed.data.ts"
click node_payment_svc "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/core/services/payment.service.ts"
click node_admin "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/admin/dashboard/admin-dashboard.component.ts"
click node_event_admin "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/admin/create-event/admin-create-event.component.ts"
click node_ledger "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/admin/registrations/admin-registrations.component.ts"
click node_scanner "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/admin/qr-scanner/admin-qr-scanner.component.ts"
click node_staff "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/staff/check-in/staff-check-in.component.ts"
click node_staff_data "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/staff/services/staff-data.service.ts"
click node_auth "https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/core/services/auth.service.ts"
click node_backend "https://github.com/harsha-19/spotbukk/blob/master/backend/server.js"
click node_mock_regs "https://github.com/harsha-19/spotbukk/blob/master/backend/mock-registrations.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_home,node_events,node_category,node_detail,node_registration,node_checkout,node_pass toneBlue
class node_category_svc,node_event_svc,node_category_seed,node_payment_svc toneAmber
class node_admin,node_event_admin,node_ledger,node_scanner,node_staff,node_staff_data toneMint
class node_auth,node_backend,node_mock_regs toneRose
class node_guest,node_razorpay toneIndigo
```

## Components

### Guest Experience

- [Home Discovery](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/public/home/home.component.ts): `frontend/src/app/public/home/home.component.ts`
- [Event Browsing](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/public/events/events.component.ts): `frontend/src/app/public/events/events.component.ts`
- [Category Pages](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/public/category-events/category-events.component.ts): `frontend/src/app/public/category-events/category-events.component.ts`
- [Event Details](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/public/event-detail/event-detail.component.ts): `frontend/src/app/public/event-detail/event-detail.component.ts`
- [Registration](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/public/registration/registration.component.ts): `frontend/src/app/public/registration/registration.component.ts`
- [Checkout](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/public/checkout/checkout.component.ts): `frontend/src/app/public/checkout/checkout.component.ts`
- [Digital Pass](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/public/ticket/ticket.component.ts): `frontend/src/app/public/ticket/ticket.component.ts`

### Ticketing Core

- [Category Catalog](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/core/services/category.service.ts): `frontend/src/app/core/services/category.service.ts`
- [Event and Booking Service](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/core/services/event.service.ts): `frontend/src/app/core/services/event.service.ts`
- [Category and Event Seeds](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/core/data/category-seed.data.ts): `frontend/src/app/core/data/category-seed.data.ts`
- [Payment Service](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/core/services/payment.service.ts): `frontend/src/app/core/services/payment.service.ts`

### Venue Operations

- [Organizer Admin](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/admin/dashboard/admin-dashboard.component.ts): `frontend/src/app/admin/dashboard/admin-dashboard.component.ts`
- [Event Publishing](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/admin/create-event/admin-create-event.component.ts): `frontend/src/app/admin/create-event/admin-create-event.component.ts`
- [Registration Ledger](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/admin/registrations/admin-registrations.component.ts): `frontend/src/app/admin/registrations/admin-registrations.component.ts`
- [QR Door Scanner](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/admin/qr-scanner/admin-qr-scanner.component.ts): `frontend/src/app/admin/qr-scanner/admin-qr-scanner.component.ts`
- [Staff Portal](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/staff/check-in/staff-check-in.component.ts): `frontend/src/app/staff/check-in/staff-check-in.component.ts`
- [Staff Check-in Data](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/staff/services/staff-data.service.ts): `frontend/src/app/staff/services/staff-data.service.ts`

### Identity and Backend

- [Authentication Service](https://github.com/harsha-19/spotbukk/blob/master/frontend/src/app/core/services/auth.service.ts): `frontend/src/app/core/services/auth.service.ts`
- [Express API](https://github.com/harsha-19/spotbukk/blob/master/backend/server.js): `backend/server.js`
- [Mock Registrations](https://github.com/harsha-19/spotbukk/blob/master/backend/mock-registrations.js): `backend/mock-registrations.js`

### Other components

- **Guest**
- **Razorpay**

## Connections

- Guest → Home Discovery: browses (evidence: `README.md`)
- Home Discovery → Event Browsing: opens discovery
- Home Discovery → Category Pages: explores categories
- Event Browsing → Event and Booking Service: loads events (evidence: `frontend/src/app/core/services/event.service.ts`)
- Category Pages → Category Catalog: filters categories (evidence: `frontend/src/app/core/services/category.service.ts`)
- Category Catalog → Event and Booking Service: reads events (evidence: `frontend/src/app/core/services/category.service.ts`)
- Category and Event Seeds → Category Catalog: seeds catalog (evidence: `frontend/src/app/core/services/category.service.ts`)
- Home Discovery → Event and Booking Service: loads featured events (evidence: `frontend/src/app/public/home/home.component.ts`)
- Event Details → Event and Booking Service: loads event (evidence: `frontend/src/app/public/event-detail/event-detail.component.ts`)
- Registration → Event and Booking Service: creates booking (evidence: `frontend/src/app/public/registration/registration.component.ts`)
- Checkout → Payment Service: starts payment (evidence: `frontend/src/app/public/checkout/checkout.component.ts`)
- Payment Service → Express API: requests order and verification (evidence: `frontend/src/app/core/services/payment.service.ts`)
- Payment Service → Razorpay: opens checkout (evidence: `frontend/src/app/core/services/payment.service.ts`)
- Express API → Razorpay: creates and verifies orders (evidence: `README.md`)
- Checkout → Digital Pass: routes after payment
- Event Publishing → Event and Booking Service: publishes events (evidence: `frontend/src/app/admin/create-event/admin-create-event.component.ts`)
- Organizer Admin → Event and Booking Service: reads event metrics (evidence: `frontend/src/app/admin/dashboard/admin-dashboard.component.ts`)
- Registration Ledger → Event and Booking Service: reads registrations (evidence: `frontend/src/app/admin/registrations/admin-registrations.component.ts`)
- QR Door Scanner → Event and Booking Service: verifies QR (evidence: `frontend/src/app/core/services/event.service.ts`)
- Event and Booking Service → Express API: posts QR verification (evidence: `frontend/src/app/core/services/event.service.ts`)
- Staff Portal → Staff Check-in Data: validates and checks in (evidence: `frontend/src/app/staff/check-in/staff-check-in.component.ts`)
- Staff Check-in Data → Mock Registrations: loads seed data
- Authentication Service → Express API: authenticates users (evidence: `frontend/src/app/core/services/auth.service.ts`)
- Organizer Admin → Authentication Service: checks session
- Staff Portal → Authentication Service: checks session
- Express API → Mock Registrations: loads mock registrations (evidence: `backend/server.js`)
