# chanchalpatel2006-png/music-festival-management architecture

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

- Interactive diagram: https://gitdiagram.com/chanchalpatel2006-png/music-festival-management
- Repository: https://github.com/chanchalpatel2006-png/music-festival-management

## Overview

This is a concert and music-festival management web application with public event/artist browsing and ticket booking, plus staff-facing management areas. The public booking flow is visible from payment submission through backend booking API and confirmation; the excerpts do not establish how event selection or booking details reach the payment page. Staff modules provide CRUD-style management for festival operations. The backend uses PostgreSQL through a shared pool. Several subsystem paths are represented at directory level because their wiring was not sampled.

Main entry points: [`backend/server.js`](https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/backend/server.js) (Express API), [`user_frontend/script.js`](https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/user_frontend/script.js) (Public home), [`user_frontend/payment/script.js`](https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/user_frontend/payment/script.js) (Booking payment), [`staff_frontend/artist_management`](https://github.com/chanchalpatel2006-png/music-festival-management/tree/main/staff_frontend/artist_management) (Artist management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public experience"]
  node_public_home["Public home<br/>[script.js]"]
  node_event_browse["Event browsing<br/>[script.js]"]
  node_artist_browse["Artist browsing<br/>[script.js]"]
  node_booking["Booking details<br/>[script.js]"]
  node_payment["Booking payment<br/>[script.js]"]
  node_confirmation["Booking confirmation<br/>[script.js]"]
end

subgraph group_staff["Staff operations"]
  node_artist_ops["Artist management"]
  node_event_ops["Events and venues"]
  node_ticket_ops["Ticket administration"]
  node_sponsor_ops["Sponsors and staffing"]
  node_vendor_ops["Vendors and stalls"]
  node_id_generator["ID generation<br/>[idGenerator.js]"]
end

subgraph group_server["Backend services"]
  node_api["Express API<br/>[server.js]"]
end

subgraph group_data["Persistence"]
  node_pool[("PostgreSQL pool<br/>[db.js]")]
end

node_visitor(("Festival visitor"))

node_visitor -.->|"opens"| node_public_home
node_public_home -->|"navigates"| node_event_browse
node_public_home -->|"navigates"| node_artist_browse
node_payment -->|"posts booking"| node_api
node_payment -->|"redirects after success"| node_confirmation
node_artist_ops -->|"calls CRUD API"| node_api
node_event_ops -->|"calls event API"| node_api
node_ticket_ops -->|"calls ticket API"| node_api
node_sponsor_ops -->|"calls staffing API"| node_api
node_vendor_ops -->|"calls stall API"| node_api
node_id_generator -->|"fetches existing IDs"| node_api
node_api -->|"queries"| node_pool

click node_public_home "https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/user_frontend/script.js"
click node_event_browse "https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/user_frontend/events/script.js"
click node_artist_browse "https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/user_frontend/artists/script.js"
click node_booking "https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/user_frontend/booking/script.js"
click node_payment "https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/user_frontend/payment/script.js"
click node_confirmation "https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/user_frontend/confirmation/script.js"
click node_artist_ops "https://github.com/chanchalpatel2006-png/music-festival-management/tree/main/staff_frontend/artist_management"
click node_event_ops "https://github.com/chanchalpatel2006-png/music-festival-management/tree/main/staff_frontend/event_venue"
click node_ticket_ops "https://github.com/chanchalpatel2006-png/music-festival-management/tree/main/staff_frontend/ticketing_payments"
click node_sponsor_ops "https://github.com/chanchalpatel2006-png/music-festival-management/tree/main/staff_frontend/sponsorship_staffing"
click node_vendor_ops "https://github.com/chanchalpatel2006-png/music-festival-management/tree/main/staff_frontend/vendor_stall"
click node_id_generator "https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/idGenerator.js"
click node_api "https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/backend/server.js"
click node_pool "https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/backend/db.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_public_home,node_event_browse,node_artist_browse,node_booking,node_payment,node_confirmation toneBlue
class node_artist_ops,node_event_ops,node_ticket_ops,node_sponsor_ops,node_vendor_ops,node_id_generator toneAmber
class node_api toneMint
class node_pool toneRose
class node_visitor toneIndigo
```

## Components

### Public experience

- [Public home](https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/user_frontend/script.js): `user_frontend/script.js`
- [Event browsing](https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/user_frontend/events/script.js): `user_frontend/events/script.js`
- [Artist browsing](https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/user_frontend/artists/script.js): `user_frontend/artists/script.js`
- [Booking details](https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/user_frontend/booking/script.js): `user_frontend/booking/script.js`
- [Booking payment](https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/user_frontend/payment/script.js): `user_frontend/payment/script.js`
- [Booking confirmation](https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/user_frontend/confirmation/script.js): `user_frontend/confirmation/script.js`

### Staff operations

- [Artist management](https://github.com/chanchalpatel2006-png/music-festival-management/tree/main/staff_frontend/artist_management): `staff_frontend/artist_management`
- [Events and venues](https://github.com/chanchalpatel2006-png/music-festival-management/tree/main/staff_frontend/event_venue): `staff_frontend/event_venue`
- [Ticket administration](https://github.com/chanchalpatel2006-png/music-festival-management/tree/main/staff_frontend/ticketing_payments): `staff_frontend/ticketing_payments`
- [Sponsors and staffing](https://github.com/chanchalpatel2006-png/music-festival-management/tree/main/staff_frontend/sponsorship_staffing): `staff_frontend/sponsorship_staffing`
- [Vendors and stalls](https://github.com/chanchalpatel2006-png/music-festival-management/tree/main/staff_frontend/vendor_stall): `staff_frontend/vendor_stall`
- [ID generation](https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/idGenerator.js): `idGenerator.js`

### Backend services

- [Express API](https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/backend/server.js): `backend/server.js`

### Persistence

- [PostgreSQL pool](https://github.com/chanchalpatel2006-png/music-festival-management/blob/main/backend/db.js): `backend/db.js`

### Other components

- **Festival visitor**

## Connections

- Festival visitor → Public home: opens
- Public home → Event browsing: navigates (evidence: `user_frontend/script.js`)
- Public home → Artist browsing: navigates (evidence: `user_frontend/script.js`)
- Booking payment → Express API: posts booking (evidence: `user_frontend/payment/script.js`)
- Booking payment → Booking confirmation: redirects after success (evidence: `user_frontend/payment/script.js`)
- Artist management → Express API: calls CRUD API (evidence: `staff_frontend/artist_management/artist_genres/script.js`)
- Events and venues → Express API: calls event API (evidence: `staff_frontend/event_venue/performances/script.js`)
- Ticket administration → Express API: calls ticket API (evidence: `staff_frontend/ticketing_payments/tickets/script.js`)
- Sponsors and staffing → Express API: calls staffing API (evidence: `staff_frontend/sponsorship_staffing/staff_assignments/script.js`)
- Vendors and stalls → Express API: calls stall API (evidence: `staff_frontend/vendor_stall/stall_setups/script.js`)
- ID generation → Express API: fetches existing IDs (evidence: `idGenerator.js`)
- Express API → PostgreSQL pool: queries (evidence: `backend/server.js`)
