# senthilragavan07-collab/ems_new_16-08-2026 architecture

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

- Interactive diagram: https://gitdiagram.com/senthilragavan07-collab/ems_new_16-08-2026
- Repository: https://github.com/senthilragavan07-collab/ems_new_16-08-2026

## Overview

EventoEMS is a campus event-management and ticket-booking application. Users browse events, view event details, proceed through an order and payment summary, and receive a QR-coded ticket in their wallet; organizers can submit event details, while account access and a calendar are separate capabilities. The React client routes the user experience and calls an Express API backed by MongoDB. The sampled excerpts establish booking, account, and event API relationships; calendar, registration, and other unsampled page behavior is represented as a capability without inferred backend calls.

Main entry points: [`client/src/App.jsx`](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/App.jsx) (Route shell), [`api/index.js`](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/api/index.js) (API routes), [`client/src/pages/PaymentSummary.jsx`](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/PaymentSummary.jsx) (Ticket checkout), [`client/src/UserContext.jsx`](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/UserContext.jsx) (User session)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["React client"]
  node_app["Route shell<br/>[App.jsx]"]
  node_layout["Shared layout<br/>[Layout.jsx]"]
  node_user_context["User session<br/>[UserContext.jsx]"]
  node_event_browse["Event discovery<br/>[IndexPage.jsx]"]
  node_event_detail["Event details<br/>[EventPage.jsx]"]
  node_calendar["Event calendar<br/>[CalendarView.jsx]"]
  node_organize["Event submission<br/>[AddEvent.jsx]"]
  node_proposal["Event proposal form<br/>[CreateEvent.jsx]"]
  node_account["Account access<br/>[LoginPage.jsx]"]
  node_registration["Registration<br/>[RegisterPage.jsx]"]
  node_account_page["User account"]
  node_order["Order summary<br/>[OrderSummary.jsx]"]
  node_payment["Ticket checkout<br/>[PaymentSummary.jsx]"]
  node_wallet["Ticket wallet<br/>[TicketPage.jsx]"]
  node_header["Navigation header<br/>[Header.jsx]"]
  node_footer["Page footer<br/>[Footer.jsx]"]
end

subgraph group_api["Express API"]
  node_api_server["API routes<br/>[index.js]"]
  node_event_store[("Event records<br/>[index.js]")]
end

subgraph group_data["MongoDB models"]
  node_user_model[("User records<br/>[User.js]")]
  node_ticket_model[("Ticket records<br/>[Ticket.js]")]
end

node_visitor(("Event user"))
node_mongo[("MongoDB")]

node_visitor -->|"uses"| node_app
node_app -->|"provides session"| node_user_context
node_app -->|"routes through"| node_layout
node_layout -->|"renders"| node_header
node_layout -->|"renders"| node_footer
node_app -->|"routes to"| node_event_browse
node_app -->|"routes to"| node_event_detail
node_app -->|"routes to"| node_calendar
node_app -->|"routes to"| node_organize
node_app -->|"routes to"| node_account
node_app -->|"routes to"| node_registration
node_app -->|"routes to"| node_account_page
node_app -->|"routes to"| node_order
node_app -->|"routes to"| node_payment
node_app -->|"routes to"| node_wallet
node_header -->|"reads session"| node_user_context
node_account -->|"sets session"| node_user_context
node_user_context -->|"loads profile"| node_api_server
node_account -->|"posts login"| node_api_server
node_header -->|"posts logout"| node_api_server
node_organize -->|"submits event"| node_api_server
node_event_browse -.->|"loads events"| node_api_server
node_event_detail -.->|"loads event"| node_api_server
node_order -.->|"loads order event"| node_api_server
node_payment -->|"loads checkout event"| node_api_server
node_payment -->|"creates ticket"| node_api_server
node_payment -->|"redirects after booking"| node_wallet
node_wallet -.->|"loads tickets"| node_api_server
node_api_server -->|"creates and queries"| node_user_model
node_api_server -->|"creates tickets"| node_ticket_model
node_api_server -->|"queries and saves"| node_event_store
node_api_server -->|"connects"| node_mongo

click node_app "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/App.jsx"
click node_layout "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/Layout.jsx"
click node_user_context "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/UserContext.jsx"
click node_event_browse "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/IndexPage.jsx"
click node_event_detail "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/EventPage.jsx"
click node_calendar "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/CalendarView.jsx"
click node_organize "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/AddEvent.jsx"
click node_proposal "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/CreateEvent.jsx"
click node_account "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/LoginPage.jsx"
click node_registration "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/RegisterPage.jsx"
click node_account_page "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/UserAccountPage.jsx"
click node_order "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/OrderSummary.jsx"
click node_payment "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/PaymentSummary.jsx"
click node_wallet "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/TicketPage.jsx"
click node_header "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/Header.jsx"
click node_footer "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/Footer.jsx"
click node_api_server "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/api/index.js"
click node_event_store "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/api/index.js"
click node_user_model "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/api/models/User.js"
click node_ticket_model "https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/api/models/Ticket.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_layout,node_user_context,node_event_browse,node_event_detail,node_calendar,node_organize,node_proposal,node_account,node_registration,node_account_page,node_order,node_payment,node_wallet,node_header,node_footer,node_visitor toneBlue
class node_api_server,node_event_store,node_mongo toneAmber
class node_user_model,node_ticket_model toneMint
```

## Components

### React client

- [Route shell](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Shared layout](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/Layout.jsx): `client/src/Layout.jsx`
- [User session](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/UserContext.jsx): `client/src/UserContext.jsx`
- [Event discovery](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/IndexPage.jsx): `client/src/pages/IndexPage.jsx`
- [Event details](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/EventPage.jsx): `client/src/pages/EventPage.jsx`
- [Event calendar](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/CalendarView.jsx): `client/src/pages/CalendarView.jsx`
- [Event submission](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/AddEvent.jsx): `client/src/pages/AddEvent.jsx`
- [Event proposal form](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/CreateEvent.jsx): `client/src/pages/CreateEvent.jsx`
- [Account access](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/LoginPage.jsx): `client/src/pages/LoginPage.jsx`
- [Registration](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/RegisterPage.jsx): `client/src/pages/RegisterPage.jsx`
- [User account](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/UserAccountPage.jsx): `client/src/pages/UserAccountPage.jsx`
- [Order summary](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/OrderSummary.jsx): `client/src/pages/OrderSummary.jsx`
- [Ticket checkout](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/PaymentSummary.jsx): `client/src/pages/PaymentSummary.jsx`
- [Ticket wallet](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/TicketPage.jsx): `client/src/pages/TicketPage.jsx`
- [Navigation header](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/Header.jsx): `client/src/pages/Header.jsx`
- [Page footer](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/client/src/pages/Footer.jsx): `client/src/pages/Footer.jsx`

### Express API

- [API routes](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/api/index.js): `api/index.js`
- [Event records](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/api/index.js): `api/index.js`

### MongoDB models

- [User records](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/api/models/User.js): `api/models/User.js`
- [Ticket records](https://github.com/senthilragavan07-collab/ems_new_16-08-2026/blob/main/api/models/Ticket.js): `api/models/Ticket.js`

### Other components

- **Event user**
- **MongoDB**

## Connections

- Event user → Route shell: uses
- Route shell → User session: provides session (evidence: `client/src/App.jsx`)
- Route shell → Shared layout: routes through (evidence: `client/src/App.jsx`)
- Shared layout → Navigation header: renders (evidence: `client/src/Layout.jsx`)
- Shared layout → Page footer: renders (evidence: `client/src/Layout.jsx`)
- Route shell → Event discovery: routes to (evidence: `client/src/App.jsx`)
- Route shell → Event details: routes to (evidence: `client/src/App.jsx`)
- Route shell → Event calendar: routes to (evidence: `client/src/App.jsx`)
- Route shell → Event submission: routes to (evidence: `client/src/App.jsx`)
- Route shell → Account access: routes to (evidence: `client/src/App.jsx`)
- Route shell → Registration: routes to (evidence: `client/src/App.jsx`)
- Route shell → User account: routes to (evidence: `client/src/App.jsx`)
- Route shell → Order summary: routes to (evidence: `client/src/App.jsx`)
- Route shell → Ticket checkout: routes to (evidence: `client/src/App.jsx`)
- Route shell → Ticket wallet: routes to (evidence: `client/src/App.jsx`)
- Navigation header → User session: reads session (evidence: `client/src/pages/Header.jsx`)
- Account access → User session: sets session (evidence: `client/src/pages/LoginPage.jsx`)
- User session → API routes: loads profile (evidence: `client/src/UserContext.jsx`)
- Account access → API routes: posts login (evidence: `client/src/pages/LoginPage.jsx`)
- Navigation header → API routes: posts logout (evidence: `client/src/pages/Header.jsx`)
- Event submission → API routes: submits event (evidence: `api/index.js`)
- Event discovery → API routes: loads events
- Event details → API routes: loads event
- Order summary → API routes: loads order event
- Ticket checkout → API routes: loads checkout event (evidence: `client/src/pages/PaymentSummary.jsx`)
- Ticket checkout → API routes: creates ticket (evidence: `client/src/pages/PaymentSummary.jsx`)
- Ticket checkout → Ticket wallet: redirects after booking (evidence: `client/src/pages/PaymentSummary.jsx`)
- Ticket wallet → API routes: loads tickets
- API routes → User records: creates and queries (evidence: `api/index.js`)
- API routes → Ticket records: creates tickets (evidence: `api/index.js`)
- API routes → Event records: queries and saves (evidence: `api/index.js`)
- API routes → MongoDB: connects (evidence: `api/index.js`)
