An AI-powered web app that generates Primary 5-level math word problems, evaluates student answers, and provides personalized feedback. Built with Next.js, Supabase, and Gemini 2.5 Flash.
Try it here: math-problem-generator-tan.vercel.app
Source code: github.com/gitChang/math-problem-generator
These are required to run the app locally or test the API:
NEXT_PUBLIC_SUPABASE_URL=https://isolicdfkecvoyrjicah.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imlzb2xpY2Rma2Vjdm95cmppY2FoIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTk1NzAxNzYsImV4cCI6MjA3NTE0NjE3Nn0.lma8gF8O8IxvfvMEYDrmNxq1hXfO3yvOxgl2lBCqDu4
⚠️ These are public keys meant for client-side access. Do not include service role keys or private credentials.
- Go to Google AI Studio
- Create a new API key for Gemini
- Clone the repo
- Install dependencies
- Add your
.env.localfile with the Supabase keys - Run locally with
npm run dev
- Next.js 14 (App Router)
- Supabase
- Gemini API (Gemini 2.5 Pro)
- TailwindCSS
- Vercel (Deployment)