{"id":19847979,"url":"https://github.com/aviralmehrotra/quiz-app-using-react","last_synced_at":"2026-04-16T08:32:07.289Z","repository":{"id":195328425,"uuid":"692701717","full_name":"AviralMehrotra/Quiz-App-using-React","owner":"AviralMehrotra","description":"A web application built with React for creating and playing quizzes.","archived":false,"fork":false,"pushed_at":"2023-09-21T02:59:24.000Z","size":198,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T12:46:19.281Z","etag":null,"topics":["quizapp","reactjs","usereducer-hooks"],"latest_commit_sha":null,"homepage":"https://dsa-quiz-app.vercel.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AviralMehrotra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-09-17T10:10:57.000Z","updated_at":"2023-09-29T21:23:30.000Z","dependencies_parsed_at":"2025-01-11T12:42:50.098Z","dependency_job_id":"ae376f37-516b-4944-bc9c-063e791c1514","html_url":"https://github.com/AviralMehrotra/Quiz-App-using-React","commit_stats":null,"previous_names":["aviralmehrotra/quiz-app-using-react"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AviralMehrotra%2FQuiz-App-using-React","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AviralMehrotra%2FQuiz-App-using-React/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AviralMehrotra%2FQuiz-App-using-React/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AviralMehrotra%2FQuiz-App-using-React/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AviralMehrotra","download_url":"https://codeload.github.com/AviralMehrotra/Quiz-App-using-React/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241226810,"owners_count":19930487,"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":["quizapp","reactjs","usereducer-hooks"],"created_at":"2024-11-12T13:15:42.697Z","updated_at":"2026-04-16T08:32:02.270Z","avatar_url":"https://github.com/AviralMehrotra.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quiz App using React 🚀\n\nA web application built with React for creating and playing quizzes. Users can answer a series of questions and receive points based on their answers. The app features a timer ⏲️, progress tracking 📊, and a user-friendly interface 🌟. In this updated version, we have integrated the JSONbin API to fetch quiz questions.\n\n## Demo 🎮\n\nYou can experience the Quiz App live by visiting the [Demo](https://dsa-quiz-app.vercel.app/).\n\n## Features 📋\n\n- **JSONbin API Integration**: Fetches quiz questions from the JSONbin API.\n- **Progress Tracking**: Tracks and displays the user's progress and points.\n- **Timer**: Implements a timer for each question to keep the game challenging.\n- **User-Friendly Interface**: Provides a user-friendly interface with interactive components.\n- **Quiz Restart**: Allows users to restart the quiz after completion.\n\n## Getting Started 🛠️\n\n### Prerequisites 📝\n\nBefore you begin, make sure you have the following software installed on your system:\n\n- [Node.js](https://nodejs.org/)\n- [npm](https://www.npmjs.com/) (usually included with Node.js)\n\n### Installation 🚀\n\n1. Clone the repository to your local machine:\n\n   ```bash\n   git clone https://github.com/AviralMehrotra/Quiz-App-using-React.git\n   ```\n\n2. Navigate to the project directory:\n\n   ```bash\n   cd Quiz-App-using-React\n   ```\n\n3. Install the project dependencies:\n\n   ```bash\n   npm install\n   ```\n\n### JSONbin API Setup 🔑\n\nTo use your own quiz questions with the app, follow these steps to set up your JSONbin Bin:\n\n1. Go to [JSONbin](https://jsonbin.io/).\n2. Sign up for an account or log in if you already have one.\n3. Create a new Bin and note down the Bin's ID.\n4. Obtain your API key from the JSONbin dashboard.\n5. In the project, locate the `secret/Keys.js` file.\n6. Replace the placeholder values for `JSONBIN_ID` and `JSONBIN_API_KEY` with your Bin's ID and API key respectively.\n\nYour `secret/Keys.js` file should look like this:\n\n```javascript\nexport const JSONBIN_ID = 'your_bin_id_here';\nexport const JSONBIN_API_KEY = 'your_api_key_here';\n```\n\n### Adding Quiz Questions 🧩\n\nTo add your own quiz questions, follow the format below and replace the existing questions in your JSONbin Bin:\n\n```json\n{\n  \"questions\": [\n    {\n      \"question\": \"Here goes Question 1\",\n      \"options\": [\n        \"Option 1\",\n        \"Option 2\",\n        \"Option 3\",\n        \"Option 4\"\n      ],\n      \"correctOption\": 3,\n      \"points\": 10\n    },\n    {\n      \"question\": \"Here goes Question 2\",\n      \"options\": [\n        \"Option 1\",\n        \"Option 2\",\n        \"Option 3\",\n        \"Option 4\"\n      ],\n      \"correctOption\": 2,\n      \"points\": 10\n    },\n    {\n      \"question\": \"Here goes Question 3\",\n      \"options\": [\n        \"Option 1\",\n        \"Option 2\",\n        \"Option 3\",\n        \"Option 4\"\n      ],\n      \"correctOption\": 1,\n      \"points\": 10\n    }\n  ]\n}\n```\n\nEnsure that your JSONbin Bin contains an array of questions under the key `\"questions\"`, with each question following the specified format.\n\n## Usage 🎯\n\n1. Start the development server:\n\n   ```bash\n   npm start\n   ```\n\n2. Open your web browser and visit [http://localhost:3000](http://localhost:3000) to use the Quiz App with your custom quiz questions.\n\n3. Answer the quiz questions, keep an eye on the timer ⏲️, and see your progress 📈.\n\n4. After completing the quiz, you can choose to restart it or explore the code to understand how it works.\n\n## Contributing 🤝\n\nContributions are welcome! If you have any suggestions for improvements or encounter any bugs, please feel free to open issues or submit pull requests.\n\n## License 📄\n\nThis project is licensed under the MIT License. For more details, please refer to the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faviralmehrotra%2Fquiz-app-using-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faviralmehrotra%2Fquiz-app-using-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faviralmehrotra%2Fquiz-app-using-react/lists"}