https://github.com/hzoo/qr-quiz
https://github.com/hzoo/qr-quiz
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hzoo/qr-quiz
- Owner: hzoo
- Created: 2025-03-07T01:31:40.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-17T17:22:00.000Z (about 2 months ago)
- Last Synced: 2025-04-23T14:19:14.987Z (11 days ago)
- Language: TypeScript
- Homepage: https://qr-quiz.henryzoo.com
- Size: 317 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Barcode Quiz
Q&A trivia app using QR codes. Either use a dedicated phone app or a connected barcode scanner.
## Features
- All questions generated via Gemini
- Barcode scanner acts as a "camera keyboard" so it types out what it sees and presses enter.
- Phone app "/qr.html": scans + sends a fetch request to the backend to select an option.
## Setup1. Clone the repository
2. Install dependencies:
```bash
bun install
```
3. Set up your Google Gemini API key:
- Get a key from [Google AI Studio](https://aistudio.google.com/app/apikey)
- Copy `.env.example` to `.env` and add your API key:
```
GEMINI_API_KEY=your_api_key_here
```## Development
```bash
bun run dev
# local server
bun run partykit
```## Deployment
```bash
# add env VITE_PARTYKIT_HOST=your-app.partykit.dev
bunx partykit deploy
bunx partykit deploy:cf
```