# suryaprakashrachamalla/clg-fest architecture

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

- Interactive diagram: https://gitdiagram.com/suryaprakashrachamalla/clg-fest
- Repository: https://github.com/suryaprakashrachamalla/clg-fest

## Overview

MVSR Sangamam is a college-fest platform for discovering events, registering individually or as teams, paying, and managing attendance and fest operations. The participant workflow runs from event browsing and sign-in through registration, checkout, and a registration slip; team invitations and QR check-in are additional stages. The graph includes the backend’s event, payment, and registration services plus administration and dashboard capabilities visible in the tree. The README is empty, and frontend-to-API wiring and several backend routes were not excerpted, so those connections are omitted or marked unverified.

Main entry points: [`mvsr-sangamam/backend/src/routes/index.ts`](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/routes/index.ts) (API routes), [`mvsr-sangamam/backend/src/services/payment.service.ts`](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/payment.service.ts) (Payment processing), [`mvsr-sangamam/backend/src/services/registration.service.ts`](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/registration.service.ts) (Registration lifecycle), [`mvsr-sangamam/backend/src/db/prisma.client.ts`](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/db/prisma.client.ts) (Application database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_participant["Participant experience"]
  node_browse["Event catalogue"]
  node_event_detail["Event details"]
  node_signin["Sign-in<br/>[auth-form.tsx]"]
  node_registration_ui["Registration checkout"]
  node_slip["Registration slip"]
  node_team_ui["Team joining<br/>[join-client.tsx]"]
  node_verify_ui["QR verification<br/>[verify-client.tsx]"]
  node_dashboard_ui["Participant dashboard"]
end

subgraph group_api["API and identity"]
  node_api_app["API application<br/>[app.ts]"]
  node_api_routes["API routes<br/>[index.ts]"]
  node_auth["Authentication<br/>[auth.service.ts]"]
  node_event_api["Event management<br/>[event.service.ts]"]
  node_registration_api["Registration lifecycle"]
  node_team_api["Team services<br/>[team.service.ts]"]
end

subgraph group_operations["Fest operations"]
  node_checkin["Check-in services<br/>[checkin.service.ts]"]
  node_admin_ui["Admin console<br/>[admin-client.tsx]"]
  node_admin_api["Admin operations<br/>[admin.service.ts]"]
  node_dashboard_api["Dashboard data"]
end

subgraph group_persistence["Payments and data"]
  node_payment_api["Payment processing<br/>[payment.service.ts]"]
  node_razorpay["Razorpay gateway<br/>[razorpay.client.ts]"]
  node_database[("Application database<br/>[prisma.client.ts]")]
end

node_visitor(("Participant"))

node_visitor -.->|"browses"| node_browse
node_browse -.->|"opens event"| node_event_detail
node_visitor -.->|"signs in"| node_signin
node_visitor -.->|"registers"| node_registration_ui
node_registration_ui -.->|"views result"| node_slip
node_visitor -.->|"joins team"| node_team_ui
node_visitor -.->|"presents QR"| node_verify_ui
node_visitor -.->|"views dashboard"| node_dashboard_ui
node_api_app -->|"mounts API"| node_api_routes
node_api_routes -.->|"routes auth"| node_auth
node_api_routes -.->|"routes events"| node_event_api
node_api_routes -.->|"routes registration"| node_registration_api
node_api_routes -.->|"routes payments"| node_payment_api
node_api_routes -.->|"routes teams"| node_team_api
node_api_routes -.->|"routes check-in"| node_checkin
node_api_routes -.->|"routes admin"| node_admin_api
node_api_routes -.->|"routes dashboard"| node_dashboard_api
node_auth -->|"reads/writes users"| node_database
node_event_api -->|"reads/writes events"| node_database
node_registration_api -->|"reserves records"| node_database
node_registration_api -->|"creates orders"| node_razorpay
node_payment_api -->|"updates payments"| node_database
node_payment_api -->|"verifies/fetches"| node_razorpay
node_payment_api -->|"confirms registration"| node_registration_api
node_team_ui -.->|"team requests"| node_team_api
node_verify_ui -.->|"verification request"| node_checkin
node_admin_ui -.->|"admin requests"| node_admin_api
node_dashboard_ui -.->|"loads dashboard"| node_dashboard_api

click node_browse "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/events/events-catalogue-client.tsx"
click node_event_detail "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/events/%5Bslug%5D/EventDetailsClient.tsx"
click node_signin "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/login/auth-form.tsx"
click node_registration_ui "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/register/%5Bslug%5D/register-client.tsx"
click node_slip "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/registration/%5Bid%5D/registration-slip.tsx"
click node_team_ui "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/join/join-client.tsx"
click node_verify_ui "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/v/%5Btoken%5D/verify-client.tsx"
click node_dashboard_ui "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/dashboard/dashboard-client.tsx"
click node_api_app "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/app.ts"
click node_api_routes "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/routes/index.ts"
click node_auth "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/auth.service.ts"
click node_event_api "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/event.service.ts"
click node_registration_api "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/registration.service.ts"
click node_team_api "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/team.service.ts"
click node_payment_api "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/payment.service.ts"
click node_razorpay "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/integrations/razorpay.client.ts"
click node_database "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/db/prisma.client.ts"
click node_checkin "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/checkin.service.ts"
click node_admin_ui "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/admin/admin-client.tsx"
click node_admin_api "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/admin.service.ts"
click node_dashboard_api "https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/dashboard.service.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_browse,node_event_detail,node_signin,node_registration_ui,node_slip,node_team_ui,node_verify_ui,node_dashboard_ui toneBlue
class node_api_app,node_api_routes,node_auth,node_event_api,node_registration_api,node_team_api toneAmber
class node_checkin,node_admin_ui,node_admin_api,node_dashboard_api toneMint
class node_payment_api,node_razorpay,node_database toneRose
class node_visitor toneIndigo
```

## Components

### Participant experience

- [Event catalogue](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/events/events-catalogue-client.tsx): `mvsr-sangamam/frontend/src/app/events/events-catalogue-client.tsx`
- [Event details](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/events/%5Bslug%5D/EventDetailsClient.tsx): `mvsr-sangamam/frontend/src/app/events/[slug]/EventDetailsClient.tsx`
- [Sign-in](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/login/auth-form.tsx): `mvsr-sangamam/frontend/src/app/login/auth-form.tsx`
- [Registration checkout](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/register/%5Bslug%5D/register-client.tsx): `mvsr-sangamam/frontend/src/app/register/[slug]/register-client.tsx`
- [Registration slip](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/registration/%5Bid%5D/registration-slip.tsx): `mvsr-sangamam/frontend/src/app/registration/[id]/registration-slip.tsx`
- [Team joining](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/join/join-client.tsx): `mvsr-sangamam/frontend/src/app/join/join-client.tsx`
- [QR verification](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/v/%5Btoken%5D/verify-client.tsx): `mvsr-sangamam/frontend/src/app/v/[token]/verify-client.tsx`
- [Participant dashboard](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/dashboard/dashboard-client.tsx): `mvsr-sangamam/frontend/src/app/dashboard/dashboard-client.tsx`

### API and identity

- [API application](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/app.ts): `mvsr-sangamam/backend/src/app.ts`
- [API routes](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/routes/index.ts): `mvsr-sangamam/backend/src/routes/index.ts`
- [Authentication](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/auth.service.ts): `mvsr-sangamam/backend/src/services/auth.service.ts`
- [Event management](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/event.service.ts): `mvsr-sangamam/backend/src/services/event.service.ts`
- [Registration lifecycle](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/registration.service.ts): `mvsr-sangamam/backend/src/services/registration.service.ts`
- [Team services](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/team.service.ts): `mvsr-sangamam/backend/src/services/team.service.ts`

### Fest operations

- [Check-in services](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/checkin.service.ts): `mvsr-sangamam/backend/src/services/checkin.service.ts`
- [Admin console](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/frontend/src/app/admin/admin-client.tsx): `mvsr-sangamam/frontend/src/app/admin/admin-client.tsx`
- [Admin operations](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/admin.service.ts): `mvsr-sangamam/backend/src/services/admin.service.ts`
- [Dashboard data](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/dashboard.service.ts): `mvsr-sangamam/backend/src/services/dashboard.service.ts`

### Payments and data

- [Payment processing](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/services/payment.service.ts): `mvsr-sangamam/backend/src/services/payment.service.ts`
- [Razorpay gateway](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/integrations/razorpay.client.ts): `mvsr-sangamam/backend/src/integrations/razorpay.client.ts`
- [Application database](https://github.com/suryaprakashrachamalla/clg-fest/blob/main/mvsr-sangamam/backend/src/db/prisma.client.ts): `mvsr-sangamam/backend/src/db/prisma.client.ts`

### Other components

- **Participant**

## Connections

- Participant → Event catalogue: browses
- Event catalogue → Event details: opens event
- Participant → Sign-in: signs in
- Participant → Registration checkout: registers
- Registration checkout → Registration slip: views result
- Participant → Team joining: joins team
- Participant → QR verification: presents QR
- Participant → Participant dashboard: views dashboard
- API application → API routes: mounts API (evidence: `mvsr-sangamam/backend/src/app.ts`)
- API routes → Authentication: routes auth
- API routes → Event management: routes events
- API routes → Registration lifecycle: routes registration
- API routes → Payment processing: routes payments
- API routes → Team services: routes teams
- API routes → Check-in services: routes check-in
- API routes → Admin operations: routes admin
- API routes → Dashboard data: routes dashboard
- Authentication → Application database: reads/writes users (evidence: `mvsr-sangamam/backend/src/services/auth.service.ts`)
- Event management → Application database: reads/writes events (evidence: `mvsr-sangamam/backend/src/services/event.service.ts`)
- Registration lifecycle → Application database: reserves records (evidence: `mvsr-sangamam/backend/src/services/registration.service.ts`)
- Registration lifecycle → Razorpay gateway: creates orders (evidence: `mvsr-sangamam/backend/src/services/registration.service.ts`)
- Payment processing → Application database: updates payments (evidence: `mvsr-sangamam/backend/src/services/payment.service.ts`)
- Payment processing → Razorpay gateway: verifies/fetches (evidence: `mvsr-sangamam/backend/src/services/payment.service.ts`)
- Payment processing → Registration lifecycle: confirms registration (evidence: `mvsr-sangamam/backend/src/services/payment.service.ts`)
- Team joining → Team services: team requests
- QR verification → Check-in services: verification request
- Admin console → Admin operations: admin requests
- Participant dashboard → Dashboard data: loads dashboard
