-
-
Notifications
You must be signed in to change notification settings - Fork 64
Description
Hi! I've been working with Rahoot and added a couple of features to my fork that I think could benefit the project. Wanted to check if you'd be interested before opening PRs.
1. Single-port deployment for cloud hosting
The current Docker setup runs web and socket on separate ports, which doesn't work on platforms like Render that only expose one port. I patched server.js to attach Socket.IO to the Next.js HTTP server so everything runs on port 3000. This is fully backward-compatible — local dev still uses two separate ports.
2. Optional Firestore persistence + online quiz management UI
Added optional Firebase Firestore support for storing quizzes. If FIREBASE_SERVICE_ACCOUNT is set, quizzes are stored in Firestore (seeded from config/quizz/ on first run). If not set, it falls back to the existing file-based storage — no breaking changes.
This also includes a manager UI for creating, editing, deleting, reordering, and importing quizzes (with JSON view), so quizzes can be managed without editing files on the server.
My fork: https://github.com/dnz-chbn/Rahoot
Happy to split these into separate PRs if you're interested. Let me know what you think!