A modular multiple-choice quiz app designed to run in GitHub Codespaces (browser-only). Questions are loaded from JSON so you can easily edit and replace content.
- Open this repo in GitHub → green "Code" button → "Codespaces" → "Create codespace on main".
- The dev container will start. If prompted, allow Ports access.
- Run the app:
pnpm install
pnpm dev
- Click the forwarded port (5173) to open the app.
Questions live in public/questions/questions.json
.
Schema:
{
"version": 1,
"source": "optional string",
"questions": [
{
"id": "unique-id",
"category": "topic-tag",
"prompt": "Question text?",
"note": "Optional helper text",
"choices": [
{ "text": "Option A" },
{ "text": "Option B", "correct": true }
]
}
]
}
You can create multiple JSON files and switch which one is served, or keep questions.json
as the current set. The UI lets you filter by category
.
pnpm test
- Import questions from PDF/CSV
- Review mode and spaced repetition
- Timed quizzes and progress persistence