How suyashagnihotri/course-platform works
Project type and purpose
• This is a full-stack, React-based course platform built on Next.js (the presence of app/ directory, next.config.mjs, Tailwind, and page.tsx files).
• Its purpose is to let students browse and enroll in courses, and let instructors create and manage courses. It also handles authentication and payment history.
File structure
• Top-level directories:
• app/ – Next.js “app” routes and server-rendered pages (frontend + server logic).
• components/ – a shared UI component library (buttons, forms, navigation, theme provider, payment modal, etc.).
• hooks/ – custom React hooks for UI and state (mobile detection, toast notifications, intersection observer, etc.).
• lib/ – business logic and data layers (authentication wrappers, data fetching, mock data, payment integration, shared types, utilities).
• utils/ – low-level DOM or animation helpers.
• public/, styles/, config files – static assets and build configurations.