How birkerochek/diplom works
This is a Next.js volunteer-event platform: people register and sign in, volunteers discover events and manage applications and attendance, organizers create and administer events, and admins review events and manage users. The main runtime path is role-based UI to API routes, then domain services and Prisma-backed data access. The tree and sampled files establish event, dashboard, registration, and volunteer-attendance flows; admin and several client-facing branches are represented from the tree, with their internal links left unverified where source was not sampled.
Main entry points: events Event API routes · volunteer Volunteer API · VolunteerPage Volunteer workspace · OrganizerPage Organizer workspace
Components 19
Identity and access
- Sign-in and signup
src/2_pages - Authentication API
app/api/auth - Registration handler
app/api/auth/register/route.ts
Event lifecycle
- Public discovery
src/2_pages/HomePage - Organizer workspace
src/2_pages/OrganizerPage - Event API routes
app/api/events - Event services
app/api/events/services - Prisma data access
src/6_shared/lib/prisma.ts
Volunteer experience
- Volunteer workspace
src/2_pages/VolunteerPage - Volunteer API
app/api/volunteer - Applications
app/api/volunteer/applications - Attendance records
app/api/volunteer/attended-events/services/getVolunteerAttendedEvents.ts - Volunteer dashboard
app/api/volunteer/dashboard
Platform operations
- Admin console
src/2_pages/AdminPage - Admin API
app/api/admin - Organizer dashboards
app/api/organizer/dashboard - Client API hooks
src/6_shared/api - Shared UI and utilities
src/6_shared
Other components
- People
Connections 25
- People → Sign-in and signup: registers or signs in
- People → Public discovery: discovers events
- People → Organizer workspace: organizes events
- People → Volunteer workspace: volunteers
- People → Admin console: manages platform
- Sign-in and signup → Authentication API: submits credentials
- Authentication API → Registration handler: handles registration
app/api/auth/register/route.ts - Organizer workspace → Event API routes: manages events
- Volunteer workspace → Event API routes: browses and applies
- Event API routes → Event services: calls services
app/api/events/route.ts - Event API routes → Event services: calls detail services
app/api/events/[eventId]/route.ts - Event services → Prisma data access: reads and writes
- Admin console → Admin API: reviews and manages
- Admin API → Event API routes: moderates events
- Organizer dashboards → Prisma data access: queries statistics
- Volunteer workspace → Volunteer API: loads volunteer data
- Volunteer API → Applications: routes applications
app/api/volunteer/applications/route.ts - Volunteer API → Attendance records: routes attendance
app/api/volunteer/attended-events/route.ts - Volunteer API → Volunteer dashboard: routes dashboard
app/api/volunteer/dashboard/route.ts - Volunteer dashboard → Attendance records: includes attendance stats
app/api/volunteer/dashboard/services/getVolunteerDashboardStats.ts - Attendance records → Prisma data access: queries completed registrations
app/api/volunteer/attended-events/services/getVolunteerAttendedEvents.ts - Client API hooks → Event API routes: requests event data
- Client API hooks → Volunteer API: requests volunteer data
- Shared UI and utilities → Organizer workspace: supports page interfaces
- Shared UI and utilities → Volunteer workspace: supports page interfaces