How tfhuneck/event-response-app works
Project type and purpose
• This is a full-stack Next.js application using the App Router (src/app) to serve both UI pages and REST-style API endpoints.
• It provides event management: admins can create/edit events and slots; guests receive invites and confirm or submit alternative responses.
• Key technologies: React, Next.js, NextAuth.js for authentication, Prisma ORM for database access, Tailwind CSS for styling.
File structure
• Top-level:
• next.config.mjs, postcss.config.mjs, tailwind.config.ts – framework and styling configs
• prisma/schema.prisma – data model and database schema
• package.json, package-lock.json – dependencies and scripts
• src/app – Next.js pages and API routes:
• /admin – admin UI pages (dashboard, create event, view/edit event, view responses)
• /api – route handlers (auth, create/edit/delete event, create/delete slot, submit response, check-in)
• /invite, /confirm – nested routes for invite flows and confirmation UI
• layout.tsx, middleware.ts – global UI layout and request middleware (auth guard, redirects)
• src/components – reusable React components (forms, lists, date/time pickers, UI primitives in components/ui)
• src/lib – shared utilities (auth wrappers, axiosInstance, Prisma client, session helpers)
README
• Confirms a standard Next.js project scaffold.