How johnweslykurasa/event_manager works
EventPulse is an event-management platform for attendees and organizers. Attendees discover events, select ticket tiers, check out, and manage tickets; organizers create and publish events, review analytics, and check in ticket holders. The React client calls an Express API, whose route handlers enforce validation and authorization before operating on event, registration, or account data. AI event-generation, marketing-copy, and concierge tools are additional documented-by-routes capabilities. Evidence is limited to the README and indexed or excerpted files; unshown connections are omitted.
Main entry points: api.ts Client API · App.tsx Web app routes · db.ts Database access · authRoutes.ts Auth routes
Components 27
Web client
- Web app routes
client/src/App.tsx - Session state
client/src/context/AuthContext.tsx - Event discovery
client/src/pages/EventListingPage.tsx - Event details
client/src/pages/EventDetailPage.tsx - Ticket checkout
client/src/pages/CheckoutPage.tsx - My tickets
client/src/pages/MyTicketsPage.tsx - Event creation
client/src/pages/EventCreatePage.tsx - Organizer dashboard
client/src/pages/DashboardPage.tsx - Check-in console
client/src/pages/CheckInPage.tsx - AI event tools
client/src/components/AiEventGeneratorModal.tsx - Client API
client/src/services/api.ts
API workflows
- Auth routes
server/src/routes/authRoutes.ts - Event routes
server/src/routes/eventRoutes.ts - Registration routes
server/src/routes/registrationRoutes.ts - AI routes
server/src/routes/aiRoutes.ts - Account operations
server/src/controllers/authController.ts - Event operations
server/src/controllers/eventController.ts - Registration operations
server/src/controllers/registrationController.ts - AI operations
server/src/controllers/aiController.ts
Platform services
- Request validation
server/src/middleware/validateMiddleware.ts - Token and roles
server/src/middleware/authMiddleware.ts - Ticket utilities
server/src/utils/ticketGenerator.ts
Data and AI
- Database access
server/src/config/db.ts - In-memory fallback
server/src/config/mockStore.ts - Gemini service
server/src/config/gemini.ts
Other components
- Attendee
- Organizer
Connections 41
- Attendee → Web app routes: uses
client/src/App.tsx - Organizer → Web app routes: uses
client/src/App.tsx - Web app routes → Event discovery: routes to
client/src/App.tsx - Web app routes → Event details: routes to
client/src/App.tsx - Web app routes → Ticket checkout: routes to
client/src/App.tsx - Web app routes → My tickets: routes to
client/src/App.tsx - Web app routes → Event creation: routes to
client/src/App.tsx - Web app routes → Organizer dashboard: routes to
client/src/App.tsx - Web app routes → Check-in console: routes to
client/src/App.tsx - Event discovery → Client API: requests data
client/src/pages/EventListingPage.tsx - Event details → Client API: requests data
client/src/pages/EventDetailPage.tsx - Ticket checkout → Client API: submits checkout
client/src/pages/CheckoutPage.tsx - My tickets → Client API: requests tickets
client/src/pages/MyTicketsPage.tsx - Event creation → Client API: submits event
client/src/pages/EventCreatePage.tsx - Event creation → AI event tools: opens generator
client/src/pages/EventCreatePage.tsx - Organizer dashboard → Client API: requests analytics
client/src/pages/DashboardPage.tsx - Check-in console → Client API: submits check-in
client/src/pages/CheckInPage.tsx - Session state → Client API: refreshes session
client/src/context/AuthContext.tsx - Client API → Auth routes: HTTP requests
client/src/services/api.ts - Client API → Event routes: HTTP requests
client/src/services/api.ts - Client API → Registration routes: HTTP requests
client/src/services/api.ts - Client API → AI routes: HTTP requests
client/src/services/api.ts - Auth routes → Account operations: dispatches
server/src/routes/authRoutes.ts - Event routes → Event operations: dispatches
server/src/routes/eventRoutes.ts - Registration routes → Registration operations: dispatches
server/src/routes/registrationRoutes.ts - AI routes → AI operations: dispatches
server/src/routes/aiRoutes.ts - Auth routes → Request validation: validates with
server/src/routes/authRoutes.ts - Event routes → Request validation: validates with
server/src/routes/eventRoutes.ts - AI routes → Request validation: validates with
server/src/routes/aiRoutes.ts - Auth routes → Token and roles: authenticates with
server/src/routes/authRoutes.ts - Event routes → Token and roles: authenticates with
server/src/routes/eventRoutes.ts - Registration routes → Token and roles: authenticates with
server/src/routes/registrationRoutes.ts - AI routes → Token and roles: authenticates with
server/src/routes/aiRoutes.ts - Account operations → Database access: queries
server/src/controllers/authController.ts - Event operations → Database access: queries
server/src/controllers/eventController.ts - Event operations → Ticket utilities: generates slugs
server/src/controllers/eventController.ts - Registration operations → Database access: reads and writes
server/src/controllers/registrationController.ts - Registration operations → Ticket utilities: uses ticket utilities
server/src/controllers/registrationController.ts - AI operations → Database access: loads event context
server/src/controllers/aiController.ts - AI operations → Gemini service: generates content
server/src/controllers/aiController.ts - Database access → In-memory fallback: falls back
server/src/config/db.ts