An interactive Jeopardy-style trivia game powered by AI question generation.
- 🎮 Multiple Players - Support for up to 8 players
- 🤖 AI-Generated Questions - Uses Hugging Face AI to create unique trivia
- 🎨 Modern UI - Beautiful, animated interface with dark mode support
- 💾 Auto-Save - Game state persists in localStorage
- 📱 Responsive - Works on desktop, tablet, and mobile
- Framework: Next.js 15 with React 19
- AI: Hugging Face Inference API + Qwen2.5-72B-Instruct model
- Styling: Tailwind CSS + shadcn/ui components
- Language: TypeScript
- Clone the repository:
git clone git@github.com:odai-dh/TrivialTriumph.git
cd TrivialTriumph- Install dependencies:
npm install- Set up environment variables:
cp .env.example .env.localAdd your Hugging Face API key to .env.local:
HUGGINGFACE_API_KEY=your_huggingface_api_key_here
- Run the development server:
npm run dev- Push your code to GitHub
- Go to Netlify
- Click "Add new site" → "Import an existing project"
- Connect to GitHub and select your repository
- Configure build settings:
- Build command:
npm run build - Publish directory:
.next
- Build command:
- Add environment variable:
- Key:
HUGGINGFACE_API_KEY - Value: Your Hugging Face API key
- Key:
- Click "Deploy site"
# Install Netlify CLI
npm install -g netlify-cli
# Login to Netlify
netlify login
# Deploy
netlify deploy --prodNote: Make sure to set your HUGGINGFACE_API_KEY environment variable in Netlify's site settings before deploying.
- Setup: Add players and select 5 categories
- Generate: Click to generate AI-powered trivia questions
- Play: Click question values to reveal clues
- Score: Award or deduct points based on answers
- Win: Highest score at the end wins!
MIT
Created by Odai