Deployment¶
The presenter and student pages are plain HTML files — no build step. You just need students to be able to open student.html in their phone browser.
Option 1: GitHub Pages (recommended)¶
Free, easy, and gives you a clean URL.
- Push the repo to GitHub (make sure
config.jsis included — you may need to remove it from.gitignoreor use a private repo) - Go to Settings > Pages in your repo
- Set the source branch and click Save
- Your student URL will be:
https://YOUR_USERNAME.github.io/supabase-live-quiz/student.html
config.js is gitignored by default
Since config.js contains your Supabase credentials, it's excluded from git. For GitHub Pages, you'll need to either:
- Remove
config.jsfrom.gitignore(fine for private repos) - Or use Netlify/Vercel environment-based injection instead
Option 2: Netlify (drag and drop)¶
- Go to app.netlify.com
- Drag the entire
supabase-live-quizfolder (includingconfig.js) onto the deploy area - Done — Netlify gives you a URL instantly
Option 3: Local network (no hosting needed)¶
Good for classrooms where everyone is on the same Wi-Fi.
Find your local IP (ifconfig | grep inet on Mac), then share:
http://YOUR_IP:8000/student.html
Option 4: Open files directly¶
The simplest option: just double-click presenter.html to open it. This works for the presenter, but students need a URL they can reach — so you'll need one of the above for student.html.