How iamkiddy/event-tickets works
Project type and purpose
• This is a full-stack web application built with Next.js (App Router) and TypeScript.
• It provides a public-facing event discovery and ticket-purchasing site (app/(main), app/auth, app/event), plus an organizer/admin dashboard (app/(dashboard)).
File structure
• Top-level config & tooling: next.config.ts, tsconfig.json, tailwind.config.ts, postcss.config.mjs, ESLint, Prettier.
• app/ directory (Next.js App Router):
– app/(main): public marketing pages, blog, events, pricing, profile, refund flows.
– app/auth: sign-in, Google OAuth, code verification.
– app/(dashboard): organizer dashboard with events CRUD, finance, teams, settings, help.
– Shared layouts in app/layout.tsx, app/(main)/layout.tsx, app/(dashboard)/layout.tsx.
• components/ directory:
– components/ui: reusable design system primitives (buttons, tables, dialogs, etc.).
– components/custom: higher-level composite widgets (forms, error cards, search fields).
• lib/ directory:
– lib/actions: API client functions (events, orders, blog, auth, organizer, etc.).
– lib/models & lib/schemas: TypeScript interfaces & validation schemas.
– lib/context: React context providers (AuthContext, React Query provider, Toaster).
– lib/apiurls.ts & lib/apiController.tsx: centralize endpoints and request wrapper.
• Public assets in public/, global styles in globals.css.
Detail without overthinking
• The goal is to show all essential pieces and how data/requests flow through them.