How rohanpathak06/evento2 works
Eventora is an event discovery and booking platform: visitors browse events, register or log in with email OTP verification, request tickets with booking OTP, and track or cancel bookings; admins manage events and review bookings, including payment status. The graph follows the React routes through the API controllers to MongoDB-backed domain records, with email delivery as a separate integration. README capabilities are included, but detailed route-to-controller and client-to-endpoint wiring is only shown where the supplied excerpts or README support it.
Main entry points: App.jsx App routes · axios.js API client · server.js API entry · bookingController.js Booking workflow
Components 23
Web client
- App routes
client/src/App.jsx - Auth state
client/src/context/AuthContext.jsx - Event browsing
client/src/pages/Home.jsx - Event booking
client/src/pages/EventDetail.jsx - User dashboard
client/src/pages/UserDashboard.jsx - Admin dashboard
client/src/pages/AdminDashboard.jsx - API client
client/src/utils/axios.js
API server
- API entry
server/server.js - Auth routes
server/routes/auth.js - Event routes
server/routes/events.js - Booking routes
server/routes/bookings.js - Authentication
server/controllers/authController.js - Event management
server/controllers/eventController.js - Booking workflow
server/controllers/bookingController.js - Access control
server/middleware/auth.js
Domain data
- User records
server/models/User.js - OTP records
server/models/OTP.js - Event records
server/models/Event.js - Booking records
server/models/Booking.js
External services
- Email delivery
server/utils/email.js - MongoDB
- Resend
Other components
- Visitor
Connections 35
- Visitor → App routes: uses
README.md - App routes → Event browsing: routes to
client/src/App.jsx - App routes → Event booking: routes to
client/src/App.jsx - App routes → Auth state: provides auth
client/src/context/AuthContext.jsx - App routes → User dashboard: routes to
client/src/App.jsx - App routes → Admin dashboard: routes to
client/src/App.jsx - Auth state → API client: sends auth requests
client/src/context/AuthContext.jsx - Event browsing → API client: requests events
README.md - Event booking → API client: requests booking
README.md - User dashboard → API client: requests bookings
README.md - Admin dashboard → API client: manages events bookings
README.md - API client → API entry: calls API
README.md - API entry → Auth routes: mounts
server/server.js - API entry → Event routes: mounts
server/server.js - API entry → Booking routes: mounts
server/server.js - Auth routes → Authentication: routes to
server/routes/auth.js - Event routes → Event management: routes to
server/controllers/eventController.js - Booking routes → Booking workflow: routes to
server/controllers/bookingController.js - Booking routes → Access control: protects routes
server/routes/bookings.js - Event routes → Access control: protects routes
server/routes/events.js - Authentication → User records: reads and writes
server/controllers/authController.js - Authentication → OTP records: reads and writes
server/controllers/authController.js - Authentication → Email delivery: sends OTP
server/controllers/authController.js - Event management → Event records: reads and writes
server/controllers/eventController.js - Booking workflow → Booking records: reads and writes
server/controllers/bookingController.js - Booking workflow → Event records: checks seats
server/controllers/bookingController.js - Booking workflow → OTP records: verifies OTP
server/controllers/bookingController.js - Booking workflow → Email delivery: sends notifications
server/controllers/bookingController.js - Access control → User records: loads user
server/middleware/auth.js - API entry → MongoDB: connects
server/server.js - Email delivery → Resend: sends email
server/utils/email.js - User records → MongoDB: persists in
- OTP records → MongoDB: persists in
- Event records → MongoDB: persists in
- Booking records → MongoDB: persists in