Description:
An AI-powered personalized learning web app where students input a topic (e.g. 'Riemann sums') and receive an adaptive lesson—GPT-4-generated explanations, interactive quizzes, and walkthroughs. Built with Next.js 15, Supabase, Tailwind CSS, and OpenAI API.
- Input any topic and get an adaptive AI lesson
- Interactive quizzes with instant feedback
- Step-by-step GPT-4 walkthroughs of problems
- Track user progress and adjust difficulty
- Beautiful, responsive UI built with TailwindCSS
- Frontend: Next.js 15, TypeScript, Tailwind CSS, Framer Motion
- Backend: Node.js 20, Next.js API routes
- Database: Supabase (PostgreSQL + Auth)
- AI: OpenAI GPT-4 API
- State Management: Zustand or Redux Toolkit
- Math Rendering: KaTeX
- Hosting: Vercel
- Testing: Jest, Cypress
- Monitoring: Sentry
/app
/components
/pages
/api
/styles
/lib
/utils
- Clone the repo
git clone https://github.com/your-username/personalized-tutor.git
cd personalized-tutor- Install dependencies
npm install- Configure environment
Create a
.env.localfile with:
NEXT_PUBLIC_SUPABASE_URL=your-supabase-url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
OPENAI_API_KEY=your-openai-api-key
- Run the dev server
npm run dev- Deploy Use Vercel for 1-click deployment with GitHub integration.
RLS is configured per table for strict user access. See rls_policies.sql for exact SQL.
MIT License