How saurabhsaini13/project-2025 works
EventSphere is an event discovery, registration, and ticketing platform with user and admin workflows, backed by an Express/MongoDB API and a suite of AI features. The principal workflow runs from browsing an event through registration and ticket retrieval; admin event management and AI capabilities are meaningful parallel branches. AI service internals and most page/API wiring were not sampled, so those connections are limited to documented modules and visible route dispatch.
Main entry points: App.jsx React application · server.js Express API · aiRoutes.js AI routes · axiosInstance.js API clients
Components 28
Web application
- React application
frontend/src/App.jsx - Authentication state
frontend/src/context/AuthContext.jsx - Event browsing UI
frontend/src/pages/Events.jsx - Registration and seats
frontend/src/components/TicketRegistrationForm.jsx - Ticket views
frontend/src/pages/TicketDetails.jsx - Event administration
frontend/src/components/admin/EventManagement.jsx - AI interface
frontend/src/components/Chatbot.jsx - API clients
frontend/src/api/axiosInstance.js
API workflows
- Express API
backend/server.js - Authentication routes
backend/routes/authRoutes.js - Authentication handlers
backend/controllers/authController.js - Event routes
backend/routes/eventRoutes.js - Event handlers
backend/controllers/eventController.js - Registration routes
backend/routes/registerRoutes.js - Ticket routes
backend/routes/ticketRoutes.js - Ticket handlers
backend/controllers/ticketController.js - AI routes
backend/routes/aiRoutes.js
Domain data
- Event records
backend/models/Event.js - Registration records
backend/models/Registration.js - User records
backend/models/User.js - MongoDB
AI features
- Recommendations
backend/services/ai/recommendationService.js - Demand forecasting
backend/services/ai/demandForecastService.js - Dynamic pricing
backend/services/ai/dynamicPricingService.js - Fraud detection
backend/services/ai/fraudDetectionService.js - Chatbot service
backend/services/ai/chatbotService.js
Other components
- Attendee
- Administrator
Connections 36
- Attendee → React application: uses
- Administrator → React application: manages events
- React application → Authentication state: provides auth
- React application → Event browsing UI: routes to
- React application → Registration and seats: routes to
- React application → Ticket views: routes to
- React application → Event administration: routes to
- React application → AI interface: renders
- Event browsing UI → API clients: requests events
- Registration and seats → API clients: submits booking
- Ticket views → API clients: requests tickets
- Event administration → API clients: sends changes
- AI interface → API clients: sends queries
- API clients → Express API: calls API
- Express API → Authentication routes: dispatches
- Express API → Event routes: dispatches
- Express API → Registration routes: dispatches
- Express API → Ticket routes: dispatches
- Express API → AI routes: dispatches
- Authentication routes → Authentication handlers: dispatches
- Event routes → Event handlers: dispatches
- Ticket routes → Ticket handlers: dispatches
- Authentication handlers → User records: reads and writes
- Event handlers → Event records: reads and writes
- Ticket handlers → Registration records: reads and writes
- Ticket handlers → Event records: updates availability
- Ticket handlers → User records: checks user
- Express API → MongoDB: connects
- AI routes → Recommendations: calls
- AI routes → Demand forecasting: calls
- AI routes → Dynamic pricing: calls
- AI routes → Fraud detection: calls
- AI routes → Chatbot service: calls
- Recommendations → Registration records: reads registrations
- Recommendations → Event records: reads events
- Recommendations → User records: reads preferences