Hackathon-ready Next.js + Tailwind web app scaffold for an Arabian Nights-themed quiz.
🚀 NEW USER? See QUICKSTART.md for step-by-step installation instructions!
- Multiple choice questions (4 options)
- Immediate feedback and explanations
- Review screen and score tracking (file-based demo store)
- 24 curated questions (data/questions.json)
- Timed mode with time bonus
- Badges placeholders & profile page
- Admin page to add questions
- Leaderboard (demo)
- Deployed-ready structure (Vercel recommended)
- Install dependencies:
npm install
- Copy
.env.local.exampleto.env.localand add values if using Supabase (optional). - Run dev server:
npm run dev
- Open http://localhost:3000
This repo uses a local file-based demo store. To demo seeding:
npm run seedMake sure the dev server is running so the script can POST to /api/seed.
- To use Supabase for auth and storage, create a Supabase project and paste your
NEXT_PUBLIC_SUPABASE_URLandNEXT_PUBLIC_SUPABASE_ANON_KEYinto.env.local. - Replace the minimal file-based APIs with Supabase queries in
pages/api/*.js(or adaptlib/supabaseClient.js).
- I recommend Vercel. Push repo to GitHub and import into Vercel — add environment variables in Vercel dashboard if using Supabase.
- Add Socket.IO or Supabase Realtime for live leaderboards and multiplayer.
- Add authentication, profile persistence, and badges logic in Supabase.
- Add accessibility testing and i18n (next-i18next).
- Add tests (Jest + Playwright) and CI.
Good luck — if you want, I can:
- Convert the demo APIs to full Supabase-backed endpoints (auth, attempts, leaderboard).
- Add Socket.IO multiplayer server and client glue.
- Create a one-click Vercel deploy config. Tell me which part you want next and I'll generate the code.