How akash209581/mh27 works
Mahotsav is a festival and sports-qualifier site with participant accounts, team registration, tournament draws, and coordinator administration. Participants browse qualifier details, sign in, look up roster members, and submit a team entry; the browser API sends requests to the Express backend, which validates requests and persists registration and draw data. Coordinators manage teams, draws, event details, and payment settings. The graph reflects documented imports, endpoint calls, and server mounts; unsampled modules are included only where their subsystem is clear from the source index or product data.
Main entry points: App.jsx App routing · registration.js Registration routes · admin.js Admin routes · server.js HTTP application
Components 27
Festival experience
- App routing
src/App.jsx - Festival content
src/data/festival.js - Draw sheets
src/components/draw/DrawSheet.jsx - Qualifier browsing
src/components/qualifiers/Qualifiers.jsx - Qualifier details
src/components/qualifiers/QualifierDetail.jsx - Participant profile
src/components/profile/ProfilePage.jsx
Participant entry
- Account registration
src/components/registration/RegistrationModal.jsx - Team registration
src/components/qualifiers/TeamRegistration.jsx
API services
- Participant API
src/lib/api.js - Coordinator API
src/lib/adminApi.js - HTTP application
backend/server.js - Registration routes
backend/routes/registration.js - Admin routes
backend/routes/admin.js - Draw routes
backend/routes/draws.js
Coordinator operations
- Coordinator dashboard
src/components/admin/AdminPanel.jsx - Draw editor
src/components/admin/DrawEditor.jsx
Data and safeguards
- Authentication
backend/middleware/auth.js - Payment proof storage
backend/utils/paymentProofStorage.js - ID generation
backend/utils/idGenerator.js - Registration records
backend/models/Registration.js - Participant records
backend/models/Participant.js - Team entries
backend/models/EventRegistration.js - Tournament draws
backend/models/TournamentDraw.js - Payment settings
backend/models/PaymentSettings.js
Other components
- Visitor / participant
- MongoDB
- Cloudinary
Connections 38
- Visitor / participant → App routing: opens
src/App.jsx - App routing → Festival content: reads content
src/App.jsx - App routing → Draw sheets: routes to
src/App.jsx - App routing → Qualifier browsing: routes to
src/App.jsx - App routing → Qualifier details: routes to
src/App.jsx - App routing → Team registration: routes to
src/App.jsx - App routing → Account registration: opens
src/App.jsx - App routing → Participant profile: routes to
src/App.jsx - Visitor / participant → Team registration: submits roster
src/components/qualifiers/TeamRegistration.jsx - Team registration → Participant API: looks up, registers
src/components/qualifiers/TeamRegistration.jsx - Account registration → Participant API: registers, signs in
src/components/registration/RegistrationModal.jsx - Participant profile → Participant API: loads registrations
src/components/profile/ProfilePage.jsx - Participant API → HTTP application: requests API
src/lib/api.js - HTTP application → Registration routes: mounts routes
backend/server.js - HTTP application → Admin routes: mounts routes
backend/server.js - HTTP application → Draw routes: mounts routes
backend/server.js - Registration routes → Authentication: checks tokens
backend/routes/registration.js - Registration routes → ID generation: generates IDs
backend/routes/registration.js - Registration routes → Registration records: uses records
backend/routes/registration.js - Registration routes → Participant records: uses records
backend/routes/registration.js - Registration routes → Team entries: uses entries
backend/routes/registration.js - Registration routes → Tournament draws: uses draws
backend/routes/registration.js - Registration routes → Payment proof storage: stores proofs
backend/routes/registration.js - Coordinator dashboard → Coordinator API: manages data
src/components/admin/AdminPanel.jsx - Draw editor → Coordinator API: edits draws
src/components/admin/DrawEditor.jsx - Coordinator API → HTTP application: requests API
src/lib/adminApi.js - Admin routes → Authentication: issues admin token
backend/routes/admin.js - Admin routes → Payment proof storage: manages proofs
backend/routes/admin.js - Admin routes → Payment settings: updates settings
backend/routes/admin.js - Admin routes → Cloudinary: uploads QR
backend/routes/admin.js - Draw routes → Authentication: checks tokens
backend/routes/draws.js - Draw routes → Team entries: reads entries
backend/routes/draws.js - Draw routes → Tournament draws: manages draws
backend/routes/draws.js - Registration records → MongoDB: persists
- Participant records → MongoDB: persists
- Team entries → MongoDB: persists
- Tournament draws → MongoDB: persists
- Payment settings → MongoDB: persists