# ganeshkumarraju4/event-manager architecture

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

- Interactive diagram: https://gitdiagram.com/ganeshkumarraju4/event-manager
- Repository: https://github.com/ganeshkumarraju4/event-manager

## Overview

Eventra is an event-management platform: people discover events, organizers create and manage them, attendees register, and organizers or admins review events and registrations. The frontend routes users through these tasks and makes authenticated API requests; the Express backend applies authentication and routes requests to domain controllers, which persist data through Prisma. The tree and excerpts also show event-change requests, configurable registration fields, venue management, event imagery, feedback, and post-event content. Several frontend pages and backend controllers were not excerpted, so their internal calls are omitted where the available evidence does not establish them.

Main entry points: [`frontend/src/App.tsx`](https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/App.tsx) (Route application), [`backend/src/utils/prisma.ts`](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/utils/prisma.ts) (Prisma data access), [`backend/src/routes/eventRoutes.ts`](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/routes/eventRoutes.ts) (Event routes), [`frontend/src/api/axios.ts`](https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/api/axios.ts) (API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web application"]
  node_app["Route application<br/>[App.tsx]"]
  node_authcontext["Auth context<br/>[AuthContext.tsx]"]
  node_api_client["API client<br/>[axios.ts]"]
  node_discovery["Event discovery<br/>[Events.tsx]"]
  node_event_detail["Event details<br/>[EventDetails.tsx]"]
  node_event_create["Create event<br/>[CreateEvent.tsx]"]
  node_organizer_events["Organizer events<br/>[MyEvents.tsx]"]
  node_admin_ui["Admin dashboard<br/>[AdminDashboard.tsx]"]
  node_registration_ui["Registration pages"]
  node_my_registrations["My registrations"]
  node_field_ui["Registration fields"]
end

subgraph group_api["API and access"]
  node_event_routes["Event routes<br/>[eventRoutes.ts]"]
  node_registration_routes["Registration routes"]
  node_field_routes["Field routes"]
  node_auth_middleware["Authentication<br/>[authMiddleware.ts]"]
  node_admin_middleware["Admin authorization<br/>[adminMiddleware.ts]"]
end

subgraph group_events["Event lifecycle"]
  node_event_controller["Event management<br/>[eventController.ts]"]
  node_change_requests["Event change requests"]
  node_admin_changes["Admin change review"]
  node_event_extras["Event extras"]
  node_feedback["Event feedback"]
  node_post_event["Post-event content"]
  node_venue_controller["Venue management<br/>[venueController.ts]"]
end

subgraph group_attendance["Registration"]
  node_registration_controller["Registration management"]
  node_field_controller["Registration field management"]
  node_validation["Answer validation"]
end

subgraph group_persistence["Persistence"]
  node_database[("MariaDB database")]
  node_prisma["Prisma data access<br/>[prisma.ts]"]
end

node_visitor(("Visitor or user"))

node_visitor -->|"uses"| node_app
node_app -->|"routes to"| node_discovery
node_app -->|"routes to"| node_event_detail
node_app -->|"routes to"| node_event_create
node_app -->|"routes to"| node_organizer_events
node_app -->|"routes to"| node_admin_ui
node_app -->|"routes to"| node_registration_ui
node_app -->|"routes to"| node_my_registrations
node_app -->|"routes to"| node_field_ui
node_app -->|"provides auth"| node_authcontext
node_authcontext -->|"requests identity"| node_api_client
node_discovery -->|"requests events"| node_api_client
node_event_create -->|"submits event"| node_api_client
node_organizer_events -->|"manages events"| node_api_client
node_admin_ui -->|"reviews events"| node_api_client
node_my_registrations -->|"loads registrations"| node_api_client
node_field_ui -->|"edits fields"| node_api_client
node_api_client -.->|"sends API requests"| node_event_routes
node_api_client -.->|"sends API requests"| node_registration_routes
node_api_client -->|"sends field requests"| node_field_routes
node_event_routes -->|"dispatches"| node_event_controller
node_event_routes -->|"dispatches"| node_change_requests
node_event_routes -->|"dispatches"| node_admin_changes
node_event_routes -->|"dispatches"| node_event_extras
node_event_routes -->|"dispatches"| node_feedback
node_event_routes -->|"dispatches"| node_post_event
node_registration_routes -->|"dispatches"| node_registration_controller
node_field_routes -->|"dispatches"| node_field_controller
node_event_routes -->|"guards requests"| node_auth_middleware
node_registration_routes -->|"guards requests"| node_auth_middleware
node_field_routes -->|"guards requests"| node_auth_middleware
node_event_routes -->|"guards admin routes"| node_admin_middleware
node_event_controller -->|"reads and writes"| node_prisma
node_change_requests -->|"reads and writes"| node_prisma
node_admin_changes -->|"reads and writes"| node_prisma
node_event_extras -->|"reads and writes"| node_prisma
node_feedback -->|"reads and writes"| node_prisma
node_post_event -->|"reads and writes"| node_prisma
node_venue_controller -->|"reads and writes"| node_prisma
node_registration_controller -->|"reads and writes"| node_prisma
node_registration_controller -->|"validates answers"| node_validation
node_field_controller -->|"reads and writes"| node_prisma
node_auth_middleware -->|"loads user"| node_prisma
node_prisma -->|"queries"| node_database

click node_app "https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/App.tsx"
click node_authcontext "https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/context/AuthContext.tsx"
click node_api_client "https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/api/axios.ts"
click node_discovery "https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/Events.tsx"
click node_event_detail "https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/EventDetails.tsx"
click node_event_create "https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/CreateEvent.tsx"
click node_organizer_events "https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/MyEvents.tsx"
click node_admin_ui "https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/AdminDashboard.tsx"
click node_registration_ui "https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/EventRegistration.tsx"
click node_my_registrations "https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/MyRegistrations.tsx"
click node_field_ui "https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/ManageRegistrationFields.tsx"
click node_event_routes "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/routes/eventRoutes.ts"
click node_registration_routes "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/routes/registrationRoutes.ts"
click node_field_routes "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/routes/registrationFieldRoutes.ts"
click node_auth_middleware "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/middleware/authMiddleware.ts"
click node_admin_middleware "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/middleware/adminMiddleware.ts"
click node_event_controller "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/eventController.ts"
click node_change_requests "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/eventChangeRequestController.ts"
click node_admin_changes "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/adminEventChangeRequestController.ts"
click node_event_extras "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/eventCoverController.ts"
click node_feedback "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/eventFeedbackController.ts"
click node_post_event "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/postEventContentController.ts"
click node_venue_controller "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/venueController.ts"
click node_registration_controller "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/registrationController.ts"
click node_field_controller "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/registrationFieldController.ts"
click node_validation "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/utils/registrationValidation.ts"
click node_prisma "https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/utils/prisma.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_authcontext,node_api_client,node_discovery,node_event_detail,node_event_create,node_organizer_events,node_admin_ui,node_registration_ui,node_my_registrations,node_field_ui,node_visitor toneBlue
class node_event_routes,node_registration_routes,node_field_routes,node_auth_middleware,node_admin_middleware toneAmber
class node_event_controller,node_change_requests,node_admin_changes,node_event_extras,node_feedback,node_post_event,node_venue_controller toneMint
class node_registration_controller,node_field_controller,node_validation toneRose
class node_database,node_prisma toneIndigo
```

## Components

### Web application

- [Route application](https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Auth context](https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/context/AuthContext.tsx): `frontend/src/context/AuthContext.tsx`
- [API client](https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/api/axios.ts): `frontend/src/api/axios.ts`
- [Event discovery](https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/Events.tsx): `frontend/src/pages/Events.tsx`
- [Event details](https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/EventDetails.tsx): `frontend/src/pages/EventDetails.tsx`
- [Create event](https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/CreateEvent.tsx): `frontend/src/pages/CreateEvent.tsx`
- [Organizer events](https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/MyEvents.tsx): `frontend/src/pages/MyEvents.tsx`
- [Admin dashboard](https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/AdminDashboard.tsx): `frontend/src/pages/AdminDashboard.tsx`
- [Registration pages](https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/EventRegistration.tsx): `frontend/src/pages/EventRegistration.tsx`
- [My registrations](https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/MyRegistrations.tsx): `frontend/src/pages/MyRegistrations.tsx`
- [Registration fields](https://github.com/ganeshkumarraju4/event-manager/blob/main/frontend/src/pages/ManageRegistrationFields.tsx): `frontend/src/pages/ManageRegistrationFields.tsx`

### API and access

- [Event routes](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/routes/eventRoutes.ts): `backend/src/routes/eventRoutes.ts`
- [Registration routes](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/routes/registrationRoutes.ts): `backend/src/routes/registrationRoutes.ts`
- [Field routes](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/routes/registrationFieldRoutes.ts): `backend/src/routes/registrationFieldRoutes.ts`
- [Authentication](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/middleware/authMiddleware.ts): `backend/src/middleware/authMiddleware.ts`
- [Admin authorization](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/middleware/adminMiddleware.ts): `backend/src/middleware/adminMiddleware.ts`

### Event lifecycle

- [Event management](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/eventController.ts): `backend/src/controllers/eventController.ts`
- [Event change requests](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/eventChangeRequestController.ts): `backend/src/controllers/eventChangeRequestController.ts`
- [Admin change review](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/adminEventChangeRequestController.ts): `backend/src/controllers/adminEventChangeRequestController.ts`
- [Event extras](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/eventCoverController.ts): `backend/src/controllers/eventCoverController.ts`
- [Event feedback](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/eventFeedbackController.ts): `backend/src/controllers/eventFeedbackController.ts`
- [Post-event content](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/postEventContentController.ts): `backend/src/controllers/postEventContentController.ts`
- [Venue management](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/venueController.ts): `backend/src/controllers/venueController.ts`

### Registration

- [Registration management](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/registrationController.ts): `backend/src/controllers/registrationController.ts`
- [Registration field management](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/controllers/registrationFieldController.ts): `backend/src/controllers/registrationFieldController.ts`
- [Answer validation](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/utils/registrationValidation.ts): `backend/src/utils/registrationValidation.ts`

### Persistence

- **MariaDB database**
- [Prisma data access](https://github.com/ganeshkumarraju4/event-manager/blob/main/backend/src/utils/prisma.ts): `backend/src/utils/prisma.ts`

### Other components

- **Visitor or user**

## Connections

- Visitor or user → Route application: uses (evidence: `frontend/src/App.tsx`)
- Route application → Event discovery: routes to (evidence: `frontend/src/App.tsx`)
- Route application → Event details: routes to (evidence: `frontend/src/App.tsx`)
- Route application → Create event: routes to (evidence: `frontend/src/App.tsx`)
- Route application → Organizer events: routes to (evidence: `frontend/src/App.tsx`)
- Route application → Admin dashboard: routes to (evidence: `frontend/src/App.tsx`)
- Route application → Registration pages: routes to (evidence: `frontend/src/App.tsx`)
- Route application → My registrations: routes to (evidence: `frontend/src/App.tsx`)
- Route application → Registration fields: routes to (evidence: `frontend/src/App.tsx`)
- Route application → Auth context: provides auth (evidence: `frontend/src/App.tsx`)
- Auth context → API client: requests identity (evidence: `frontend/src/context/AuthContext.tsx`)
- Event discovery → API client: requests events
- Create event → API client: submits event (evidence: `frontend/src/pages/CreateEvent.tsx`)
- Organizer events → API client: manages events (evidence: `frontend/src/pages/MyEvents.tsx`)
- Admin dashboard → API client: reviews events (evidence: `frontend/src/pages/AdminDashboard.tsx`)
- My registrations → API client: loads registrations (evidence: `frontend/src/pages/MyRegistrations.tsx`)
- Registration fields → API client: edits fields (evidence: `frontend/src/pages/ManageRegistrationFields.tsx`)
- API client → Event routes: sends API requests
- API client → Registration routes: sends API requests
- API client → Field routes: sends field requests
- Event routes → Event management: dispatches (evidence: `backend/src/routes/eventRoutes.ts`)
- Event routes → Event change requests: dispatches (evidence: `backend/src/routes/eventRoutes.ts`)
- Event routes → Admin change review: dispatches (evidence: `backend/src/routes/eventRoutes.ts`)
- Event routes → Event extras: dispatches (evidence: `backend/src/routes/eventRoutes.ts`)
- Event routes → Event feedback: dispatches (evidence: `backend/src/routes/eventRoutes.ts`)
- Event routes → Post-event content: dispatches (evidence: `backend/src/routes/eventRoutes.ts`)
- Registration routes → Registration management: dispatches (evidence: `backend/src/routes/registrationRoutes.ts`)
- Field routes → Registration field management: dispatches (evidence: `backend/src/routes/registrationFieldRoutes.ts`)
- Event routes → Authentication: guards requests (evidence: `backend/src/routes/eventRoutes.ts`)
- Registration routes → Authentication: guards requests (evidence: `backend/src/routes/registrationRoutes.ts`)
- Field routes → Authentication: guards requests (evidence: `backend/src/routes/registrationFieldRoutes.ts`)
- Event routes → Admin authorization: guards admin routes (evidence: `backend/src/routes/eventRoutes.ts`)
- Event management → Prisma data access: reads and writes (evidence: `backend/src/controllers/eventController.ts`)
- Event change requests → Prisma data access: reads and writes (evidence: `backend/src/controllers/eventChangeRequestController.ts`)
- Admin change review → Prisma data access: reads and writes (evidence: `backend/src/controllers/adminEventChangeRequestController.ts`)
- Event extras → Prisma data access: reads and writes (evidence: `backend/src/controllers/eventCoverController.ts`)
- Event feedback → Prisma data access: reads and writes (evidence: `backend/src/controllers/eventFeedbackController.ts`)
- Post-event content → Prisma data access: reads and writes (evidence: `backend/src/controllers/postEventContentController.ts`)
- Venue management → Prisma data access: reads and writes (evidence: `backend/src/controllers/venueController.ts`)
- Registration management → Prisma data access: reads and writes (evidence: `backend/src/controllers/registrationController.ts`)
- Registration management → Answer validation: validates answers (evidence: `backend/src/controllers/registrationController.ts`)
- Registration field management → Prisma data access: reads and writes (evidence: `backend/src/controllers/registrationFieldController.ts`)
- Authentication → Prisma data access: loads user (evidence: `backend/src/middleware/authMiddleware.ts`)
- Prisma data access → MariaDB database: queries (evidence: `backend/src/utils/prisma.ts`)
