How seeramgiridhar/cem works
CampusEvents is a college event-management application for students, organizers, and administrators. Users discover and filter events, register, receive tickets, and access attendance certificates; organizers create events for approval and manage attendance, while administrators oversee users, venues, categories, and analytics. The React client routes role-protected pages through a shared API client and authentication context to an Express API, whose controllers implement domain operations against Supabase. README capabilities include feedback, notifications, poster uploads, and venue-clash prevention; some detailed wiring is not shown in the excerpts.
Main entry points: App.jsx Route shell · api.js API client · index.js Express API · auth.js JWT authorization
Components 31
Web client
- Route shell
client/src/App.jsx - Auth state
client/src/context/AuthContext.jsx - API client
client/src/services/api.js - Event discovery
client/src/pages/Events.jsx - Event details
client/src/pages/EventDetail.jsx - Event card
client/src/components/EventCard.jsx - Organizer dashboard
client/src/pages/Dashboard.jsx - Event editor
client/src/pages/CreateEvent.jsx - Admin dashboard
client/src/pages/AdminDashboard.jsx - My registrations
client/src/pages/MyRegistrations.jsx - Ticket view
client/src/pages/Ticket.jsx - Notifications view
client/src/pages/Notifications.jsx - Sign-in and signup
client/src/pages/Register.jsx
Event operations
- Event operations
server/controllers/eventsController.js - Administration
server/controllers/adminController.js
Identity and access
- Authentication
server/controllers/authController.js - JWT authorization
server/middleware/auth.js
Participation services
- Registration services
server/controllers/registrationsController.js - Notification services
server/controllers/notificationsController.js
API and data
- Express API
server/index.js - Event routes
server/routes/events.js - Auth routes
server/routes/auth.js - Registration routes
server/routes/registrations.js - Admin routes
server/routes/admin.js - Notification routes
server/routes/notifications.js - Supabase database
server/config/supabase.js - Cloudinary
server/config/cloudinary.js - Email service
server/config/email.js
Other components
- Student
- Organizer
- Administrator
Connections 48
- Route shell → Event discovery: routes to
client/src/App.jsx - Route shell → Event details: routes to
client/src/App.jsx - Route shell → Organizer dashboard: routes to
client/src/App.jsx - Route shell → Event editor: routes to
client/src/App.jsx - Route shell → Admin dashboard: routes to
client/src/App.jsx - Route shell → My registrations: routes to
client/src/App.jsx - Route shell → Ticket view: routes to
client/src/App.jsx - Route shell → Notifications view: routes to
client/src/App.jsx - Route shell → Sign-in and signup: routes to
client/src/App.jsx - Event discovery → Event card: renders
client/src/pages/Events.jsx - Organizer dashboard → Event card: renders
client/src/pages/Dashboard.jsx - Sign-in and signup → Auth state: uses
client/src/pages/Register.jsx - Auth state → API client: calls
client/src/context/AuthContext.jsx - Event discovery → API client: requests data
client/src/pages/Events.jsx - Event details → API client: requests data
client/src/pages/EventDetail.jsx - Organizer dashboard → API client: requests data
client/src/pages/Dashboard.jsx - Event editor → API client: submits changes
client/src/pages/CreateEvent.jsx - Admin dashboard → API client: requests data
client/src/pages/AdminDashboard.jsx - My registrations → API client: requests data
client/src/pages/MyRegistrations.jsx - Notifications view → API client: requests data
client/src/pages/Notifications.jsx - Student → Event discovery: discovers events
README.md - Student → Event details: views details
README.md - Organizer → Event editor: manages events
README.md - Administrator → Admin dashboard: oversees system
README.md - API client → Express API: sends API requests
- Express API → Event routes: mounts
server/index.js - Express API → Auth routes: mounts
server/index.js - Express API → Registration routes: mounts
server/index.js - Express API → Admin routes: mounts
server/index.js - Express API → Notification routes: mounts
server/index.js - Event routes → Event operations: dispatches
server/routes/events.js - Auth routes → Authentication: dispatches
server/routes/auth.js - Registration routes → Registration services: dispatches
server/routes/registrations.js - Admin routes → Administration: dispatches
server/routes/admin.js - Notification routes → Notification services: dispatches
server/routes/notifications.js - Event routes → JWT authorization: protects routes
server/routes/events.js - Auth routes → JWT authorization: protects routes
server/routes/auth.js - Registration routes → JWT authorization: protects routes
server/routes/registrations.js - Admin routes → JWT authorization: protects routes
server/routes/admin.js - Notification routes → JWT authorization: protects routes
server/routes/notifications.js - JWT authorization → Supabase database: loads user
server/middleware/auth.js - Authentication → Supabase database: reads and writes
server/controllers/authController.js - Event operations → Supabase database: reads and writes
server/controllers/eventsController.js - Administration → Supabase database: reads and writes
server/controllers/adminController.js - Registration services → Supabase database: reads and writes
server/controllers/registrationsController.js - Notification services → Supabase database: reads and writes
server/controllers/notificationsController.js - Event operations → Cloudinary: uploads posters
server/controllers/eventsController.js - Authentication → Email service: sends reset email
server/controllers/authController.js