How kusalkumar06/eventia works
Eventia is an event-discovery and event-management application with attendee registration, organizer tools, and administrative review. The main flow is users discovering published events and registering; organizers create and manage events, while admins review event status and organizer access. The graph also includes authentication, OTP email verification, profiles, search, and the persistence layer. Relationships reflect sampled code and SOURCE INDEX references; several UI and service modules were not sampled, so their internals are not inferred.
Main entry points: eventActions.ts Event operations · register/route.ts Auth endpoints · send-otp/route.ts OTP endpoints · db.ts MongoDB connection
Components 30
Attendee experience
- Event discovery
app/(main)/events/page.tsx - Event details
app/(main)/events/[...slug]/page.tsx - Global search
components/GlobalSearch.tsx - Registration control
components/RegisterButton.tsx - Landing page
components/LandingPage.tsx
Identity and profiles
- Sign-in
app/(auth)/signin/page.tsx - Authentication
lib/auth.ts - Auth endpoints
app/api/auth/register/route.ts - OTP endpoints
app/api/auth/send-otp/route.ts - Profile management
app/(main)/profile/page.tsx - Profile update endpoint
app/api/users/me/route.ts
Event operations
- Organizer workspace
app/organizer/my-events/page.tsx - Event authoring
components/createEvent/EventForm.tsx - Event operations
utilities/server/eventActions.ts - Admin dashboard
app/admin/page.tsx - Admin review
app/admin/events/pending/page.tsx - Organizer access review
utilities/server/adminOrganizerActions.ts - Registration service
utilities/services/registrationActions.ts
Persistence and services
- MongoDB connection
lib/db.ts - User records
models/user.model.ts - Event records
models/event.model.ts - Registration records
models/registration.model.ts - Category records
models/category.model.ts - OTP records
models/otp.model.ts - Activity records
models/activity.model.ts
Other components
- Attendee
- Organizer
- Administrator
- Brevo email
lib/brevo.ts - Google identity
Connections 42
- Attendee → Event discovery: browses
- Event discovery → Event operations: loads listings
- Attendee → Global search: searches
- Global search → Event operations: requests events
- Attendee → Event details: opens event
- Event details → Event operations: loads event
app/(main)/events/[...slug]/page.tsx - Event details → Registration control: renders
app/(main)/events/[...slug]/page.tsx - Registration control → Registration service: invokes
components/RegisterButton.tsx - Registration service → Registration records: reads and writes
- Landing page → Event discovery: promotes events
- Attendee → Sign-in: signs in
- Sign-in → Authentication: authenticates
- Authentication → User records: reads users
lib/auth.ts - Authentication → MongoDB connection: connects
lib/auth.ts - Authentication → Google identity: supports sign-in
lib/auth.ts - Attendee → Auth endpoints: registers
- Auth endpoints → User records: creates user
app/api/auth/register/route.ts - Auth endpoints → OTP records: creates OTP
app/api/auth/register/route.ts - Auth endpoints → Brevo email: sends verification
app/api/auth/register/route.ts - Attendee → OTP endpoints: requests OTP
- OTP endpoints → OTP records: stores OTP
app/api/auth/send-otp/route.ts - OTP endpoints → Brevo email: sends code
app/api/auth/send-otp/route.ts - OTP endpoints → User records: checks account
app/api/auth/send-otp/route.ts - Profile management → Profile update endpoint: updates profile
app/(main)/profile/page.tsx - Profile update endpoint → User records: updates user
app/api/users/me/route.ts - Organizer → Event authoring: creates event
- Event authoring → Event operations: submits event
- Organizer → Organizer workspace: manages events
- Organizer workspace → Event operations: loads events
app/organizer/my-events/page.tsx - Event operations → Event records: reads and writes
utilities/server/eventActions.ts - Event operations → Category records: looks up categories
utilities/server/eventActions.ts - Administrator → Admin dashboard: views metrics
- Admin dashboard → Event records: counts events
app/admin/page.tsx - Admin dashboard → User records: counts users
app/admin/page.tsx - Admin dashboard → Activity records: reads activity
app/admin/page.tsx - Administrator → Admin review: reviews events
- Admin review → Event operations: loads review list
- Administrator → Organizer access review: reviews requests
- Event operations → MongoDB connection: connects
utilities/server/eventActions.ts - Profile update endpoint → MongoDB connection: connects
app/api/users/me/route.ts - OTP endpoints → MongoDB connection: connects
app/api/auth/send-otp/route.ts - Auth endpoints → MongoDB connection: connects
app/api/auth/register/route.ts