How kaialan/dhwani-frontend works
Project type and purpose
• This is a full-stack Next.js application serving as an educational platform where users can register/login, browse courses, view content, clear doubts, and purchase courses via Stripe.
• Key features gleaned from the file tree and README:
• Next.js 13 App Router under app/ with server and client components
• Authentication flows (NextAuth + custom actions)
• Stripe checkout integration
• Static/data-driven course content (JSON in data/)
• UI component library under components/ui/
File structure
• Top-level directories:
• app/ – Next.js App Router pages, layouts, protected and public routes
• app/api/ – Next.js API Routes for auth, webhook, checkout
• action/ – Server actions for business logic (auth, course queries, profile, payment)
• components/ – Reusable React UI components (domain-specific + generic UI library)
• data/ – Hard-coded constants and simple data-fetching utilities
• lib/, utils/, hooks/, schema/ – Types, helpers, hooks, validation schemas
• pages/ – Legacy Pages Router API for location lookup
• Config files (next.config.mjs, tailwind.config.ts, ESLint, TS)
README for additional insights
• Standard Next.js starter README with hints that this is server-rendered, uses next/font, and is deployable to Vercel.