# gojo-satoru-git/tekhora26 architecture

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

- Interactive diagram: https://gitdiagram.com/gojo-satoru-git/tekhora26
- Repository: https://github.com/gojo-satoru-git/tekhora26

## Overview

TEKHORA’26 is a symposium registration and event check-in platform. Participants browse events, authenticate, select passes or events, and complete a payment; the backend creates orders and reserves limited seats, then payment confirmation produces a QR token for admin scanning. The map also preserves documented OTP, promotion, combo-package, and event-management capabilities. Some domain links rely on README descriptions or source-index references; unsampled route/controller wiring is not inferred beyond what those sources show.

Main entry points: [`sympo/frontend/src/App.jsx`](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/App.jsx) (App routes), [`sympo/functions/src/app.js`](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/app.js) (Express API), [`sympo/frontend/src/screens/Register.jsx`](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/screens/Register.jsx) (Registration checkout), [`sympo/functions/src/controllers/payment.controller.js`](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/controllers/payment.controller.js) (Order and payment)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Participant experience"]
  node_app["App routes<br/>[App.jsx]"]
  node_authui["Sign-in forms<br/>[Authform.jsx]"]
  node_events["Event browsing<br/>[Events.jsx]"]
end

subgraph group_commerce["Registration and orders"]
  node_register["Registration checkout<br/>[Register.jsx]"]
  node_passes["Pass catalog<br/>[passess.js]"]
  node_purchases["Purchase state"]
  node_paymentui["Payment client<br/>[payment.service.js]"]
end

subgraph group_api["Backend capabilities"]
  node_backend["Express API<br/>[app.js]"]
  node_auth_routes["Authentication routes<br/>[auth.routes.js]"]
  node_auth_controller["Authentication<br/>[auth.controller.js]"]
  node_otp_routes["OTP routes<br/>[otp.routes.js]"]
  node_otp_controller["OTP verification<br/>[otp.controller.js]"]
  node_payment_routes["Payment and scan routes<br/>[payment.routes.js]"]
  node_payment_controller["Order and payment"]
  node_order_service["Seat and order logic<br/>[order.service.js]"]
  node_cashfree_service["Gateway integration"]
  node_scan_controller["QR check-in<br/>[scan.controller.js]"]
  node_promo["Promotion validation"]
end

subgraph group_platform["Identity and data"]
  node_api_client["HTTP client<br/>[api.js]"]
  node_authstate["Auth state<br/>[AuthContext.jsx]"]
  node_firebase_client["Firebase client<br/>[firebase.js]"]
  node_firebase_admin[("Firebase services<br/>[firebase.js]")]
end

node_participant(("Participant"))
node_admin(("Admin scanner"))
node_cashfree{{"Cashfree"}}

node_participant -->|"opens"| node_app
node_app -->|"routes to"| node_authui
node_app -->|"routes to"| node_events
node_app -->|"routes to"| node_register
node_app -->|"protects scan"| node_admin
node_authui -->|"uses"| node_authstate
node_authstate -->|"observes sign-in"| node_firebase_client
node_authstate -->|"fetches profile"| node_api_client
node_register -->|"reads catalog"| node_passes
node_register -->|"starts payment"| node_paymentui
node_register -->|"checks purchases"| node_purchases
node_paymentui -->|"sends requests"| node_api_client
node_api_client -->|"HTTP API"| node_backend
node_backend -->|"mounts"| node_auth_routes
node_backend -->|"mounts"| node_payment_routes
node_backend -->|"mounts"| node_otp_routes
node_backend -.->|"supports promotions"| node_promo
node_auth_routes -->|"dispatches"| node_auth_controller
node_otp_routes -->|"dispatches"| node_otp_controller
node_payment_routes -->|"dispatches"| node_payment_controller
node_payment_routes -->|"dispatches"| node_scan_controller
node_payment_controller -->|"creates orders"| node_order_service
node_payment_controller -->|"creates and checks"| node_cashfree_service
node_payment_controller -->|"reads and updates"| node_firebase_admin
node_order_service -->|"reserves seats"| node_firebase_admin
node_cashfree_service -->|"gateway calls"| node_cashfree
node_scan_controller -->|"validates check-ins"| node_firebase_admin
node_auth_controller -->|"uses identity and data"| node_firebase_admin
node_participant -.->|"requests verification"| node_otp_routes
node_admin -.->|"submits scans"| node_payment_routes

click node_app "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/App.jsx"
click node_authui "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/components/Authform.jsx"
click node_events "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/screens/Events.jsx"
click node_register "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/screens/Register.jsx"
click node_passes "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/data/passess.js"
click node_purchases "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/context/PurchaseContext.jsx"
click node_paymentui "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/services/payment.service.js"
click node_api_client "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/services/api.js"
click node_authstate "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/context/AuthContext.jsx"
click node_firebase_client "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/firebase.js"
click node_backend "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/app.js"
click node_auth_routes "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/routes/auth.routes.js"
click node_auth_controller "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/controllers/auth.controller.js"
click node_otp_routes "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/routes/otp.routes.js"
click node_otp_controller "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/controllers/otp.controller.js"
click node_payment_routes "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/routes/payment.routes.js"
click node_payment_controller "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/controllers/payment.controller.js"
click node_order_service "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/service/order.service.js"
click node_cashfree_service "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/service/cashfree.service.js"
click node_scan_controller "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/controllers/scan.controller.js"
click node_promo "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/controllers/promo.controller.js"
click node_firebase_admin "https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/config/firebase.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_app,node_authui,node_events toneBlue
class node_register,node_passes,node_purchases,node_paymentui toneAmber
class node_backend,node_auth_routes,node_auth_controller,node_otp_routes,node_otp_controller,node_payment_routes,node_payment_controller,node_order_service,node_cashfree_service,node_scan_controller,node_promo toneMint
class node_api_client,node_authstate,node_firebase_client,node_firebase_admin toneRose
class node_participant,node_admin,node_cashfree toneIndigo
```

## Components

### Participant experience

- [App routes](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/App.jsx): `sympo/frontend/src/App.jsx`
- [Sign-in forms](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/components/Authform.jsx): `sympo/frontend/src/components/Authform.jsx`
- [Event browsing](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/screens/Events.jsx): `sympo/frontend/src/screens/Events.jsx`

### Registration and orders

- [Registration checkout](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/screens/Register.jsx): `sympo/frontend/src/screens/Register.jsx`
- [Pass catalog](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/data/passess.js): `sympo/frontend/src/data/passess.js`
- [Purchase state](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/context/PurchaseContext.jsx): `sympo/frontend/src/context/PurchaseContext.jsx`
- [Payment client](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/services/payment.service.js): `sympo/frontend/src/services/payment.service.js`

### Backend capabilities

- [Express API](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/app.js): `sympo/functions/src/app.js`
- [Authentication routes](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/routes/auth.routes.js): `sympo/functions/src/routes/auth.routes.js`
- [Authentication](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/controllers/auth.controller.js): `sympo/functions/src/controllers/auth.controller.js`
- [OTP routes](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/routes/otp.routes.js): `sympo/functions/src/routes/otp.routes.js`
- [OTP verification](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/controllers/otp.controller.js): `sympo/functions/src/controllers/otp.controller.js`
- [Payment and scan routes](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/routes/payment.routes.js): `sympo/functions/src/routes/payment.routes.js`
- [Order and payment](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/controllers/payment.controller.js): `sympo/functions/src/controllers/payment.controller.js`
- [Seat and order logic](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/service/order.service.js): `sympo/functions/src/service/order.service.js`
- [Gateway integration](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/service/cashfree.service.js): `sympo/functions/src/service/cashfree.service.js`
- [QR check-in](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/controllers/scan.controller.js): `sympo/functions/src/controllers/scan.controller.js`
- [Promotion validation](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/controllers/promo.controller.js): `sympo/functions/src/controllers/promo.controller.js`

### Identity and data

- [HTTP client](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/services/api.js): `sympo/frontend/src/services/api.js`
- [Auth state](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/context/AuthContext.jsx): `sympo/frontend/src/context/AuthContext.jsx`
- [Firebase client](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/frontend/src/firebase.js): `sympo/frontend/src/firebase.js`
- [Firebase services](https://github.com/gojo-satoru-git/tekhora26/blob/main/sympo/functions/src/config/firebase.js): `sympo/functions/src/config/firebase.js`

### Other components

- **Participant**
- **Admin scanner**
- **Cashfree**

## Connections

- Participant → App routes: opens (evidence: `sympo/frontend/src/App.jsx`)
- App routes → Sign-in forms: routes to (evidence: `sympo/frontend/src/App.jsx`)
- App routes → Event browsing: routes to (evidence: `sympo/frontend/src/App.jsx`)
- App routes → Registration checkout: routes to (evidence: `sympo/frontend/src/App.jsx`)
- App routes → Admin scanner: protects scan (evidence: `sympo/frontend/src/App.jsx`)
- Sign-in forms → Auth state: uses (evidence: `sympo/frontend/src/components/Authform.jsx`)
- Auth state → Firebase client: observes sign-in (evidence: `sympo/frontend/src/context/AuthContext.jsx`)
- Auth state → HTTP client: fetches profile (evidence: `sympo/frontend/src/context/AuthContext.jsx`)
- Registration checkout → Pass catalog: reads catalog (evidence: `sympo/frontend/src/screens/Register.jsx`)
- Registration checkout → Payment client: starts payment (evidence: `sympo/frontend/src/screens/Register.jsx`)
- Registration checkout → Purchase state: checks purchases (evidence: `sympo/frontend/src/screens/Register.jsx`)
- Payment client → HTTP client: sends requests (evidence: `sympo/frontend/src/services/payment.service.js`)
- HTTP client → Express API: HTTP API (evidence: `README.md`)
- Express API → Authentication routes: mounts (evidence: `sympo/functions/src/app.js`)
- Express API → Payment and scan routes: mounts (evidence: `sympo/functions/src/app.js`)
- Express API → OTP routes: mounts (evidence: `sympo/functions/src/app.js`)
- Express API → Promotion validation: supports promotions
- Authentication routes → Authentication: dispatches (evidence: `sympo/functions/src/routes/auth.routes.js`)
- OTP routes → OTP verification: dispatches (evidence: `sympo/functions/src/routes/otp.routes.js`)
- Payment and scan routes → Order and payment: dispatches (evidence: `sympo/functions/src/routes/payment.routes.js`)
- Payment and scan routes → QR check-in: dispatches (evidence: `sympo/functions/src/routes/payment.routes.js`)
- Order and payment → Seat and order logic: creates orders (evidence: `sympo/functions/src/controllers/payment.controller.js`)
- Order and payment → Gateway integration: creates and checks (evidence: `sympo/functions/src/controllers/payment.controller.js`)
- Order and payment → Firebase services: reads and updates (evidence: `sympo/functions/src/controllers/payment.controller.js`)
- Seat and order logic → Firebase services: reserves seats (evidence: `sympo/functions/src/service/order.service.js`)
- Gateway integration → Cashfree: gateway calls (evidence: `README.md`)
- QR check-in → Firebase services: validates check-ins (evidence: `sympo/functions/src/controllers/scan.controller.js`)
- Authentication → Firebase services: uses identity and data (evidence: `sympo/functions/src/controllers/auth.controller.js`)
- Participant → OTP routes: requests verification (evidence: `README.md`)
- Admin scanner → Payment and scan routes: submits scans (evidence: `README.md`)
