{"id":24131778,"url":"https://github.com/alvalens/generative-trivia","last_synced_at":"2025-10-08T14:32:56.188Z","repository":{"id":255286711,"uuid":"848866103","full_name":"Alvalens/generative-trivia","owner":"Alvalens","description":"A web based generative trivia quiz game based on user education with gemini API","archived":false,"fork":false,"pushed_at":"2024-12-01T17:20:47.000Z","size":353,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-01T18:25:32.363Z","etag":null,"topics":["gemini-api","generative-ai","nextjs","trivia","trivia-quiz-game","typescript","website"],"latest_commit_sha":null,"homepage":"https://generative-trivia.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alvalens.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-28T14:48:16.000Z","updated_at":"2024-12-01T17:20:51.000Z","dependencies_parsed_at":"2024-08-29T03:48:31.215Z","dependency_job_id":"b10970ca-9dd4-446b-b4e7-717a29ed2560","html_url":"https://github.com/Alvalens/generative-trivia","commit_stats":null,"previous_names":["alvalens/generative-trivia"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alvalens%2Fgenerative-trivia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alvalens%2Fgenerative-trivia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alvalens%2Fgenerative-trivia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alvalens%2Fgenerative-trivia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alvalens","download_url":"https://codeload.github.com/Alvalens/generative-trivia/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233539705,"owners_count":18691289,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gemini-api","generative-ai","nextjs","trivia","trivia-quiz-game","typescript","website"],"created_at":"2025-01-11T21:31:09.395Z","updated_at":"2025-09-19T01:32:18.296Z","avatar_url":"https://github.com/Alvalens.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generative Trivia\n\n![visitor badge](https://visitor-badge.laobi.icu/badge?page_id=generative-trivia.visitor-badge)\n\nA generative trivia website built with Next.js, Firebase, NextAuth, Google OAuth, and TypeScript. Users can generate trivia questions for predefined school subjects and answer them with a unique interactive input style. The application supports user authentication with Google and stores data in Firestore.\n\n![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge\u0026logo=typescript\u0026logoColor=white) ![Next JS](https://img.shields.io/badge/Next-black?style=for-the-badge\u0026logo=next.js\u0026logoColor=white) ![TailwindCSS](https://img.shields.io/badge/tailwindcss-%2338B2AC.svg?style=for-the-badge\u0026logo=tailwind-css\u0026logoColor=white) ![Firebase](https://img.shields.io/badge/firebase-a08021?style=for-the-badge\u0026logo=firebase\u0026logoColor=ffcd34)\n\n## Features\n\n- **User Authentication**: Sign in with Google using NextAuth.\n- **Firestore Integration**: Store and retrieve trivia questions and user data.\n- **Dynamic Trivia Generation**: Generate trivia questions on predefined subjects.\n- **Interactive Answer Input**: Multiple input fields per word with a unique OTP-style interface.\n- **Protected Routes**: Ensure only authenticated users can access certain parts of the app.\n\n## Installation\n\n1. **Clone the repository**:\n\n   ```bash\n   git clone https://github.com/Alvalens/generative-trivia.git\n   cd generative-trivia\n   ```\n2. **Install dependencies**:\n\n   ```bash\n   pnpm install\n   ```\n3. **Set up Firebase**:\n\n   - Go to the Firebase console, create a project, and enable Firestore.\n   - Set up Google authentication in Firebase Authentication.\n4. **Set up Google OAuth**:\n\n   - Create OAuth credentials in the Google Cloud Console.\n   - Obtain `CLIENT_ID` and `CLIENT_SECRET`.\n\n5. **Set up Gemini API**:\n   Create Gemini API credentials in the Google AI Studio.\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions, feel free to open an issue or submit a pull request.\n\n\n## License\n\nThis project is licensed under the GPL-3.0 License see the [LICENSE](LICENSE) file for details.\n\n## Key Points to Customize:\n- Replace `yourusername` with your GitHub username if applicable.\n- Add any additional setup or usage instructions specific to your project.\n- Update or fill any blank envirotment variable\n\nThis `README.md` should give anyone a clear understanding of how to set up, use, and contribute to your project.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvalens%2Fgenerative-trivia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falvalens%2Fgenerative-trivia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvalens%2Fgenerative-trivia/lists"}