Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/collinskchirchir/react-quiz
A dynamic React quiz app using useReducer for state management. Test your React knowledge with timed challenges.
https://github.com/collinskchirchir/react-quiz
json-server reactjs usereducer-hook
Last synced: 1 day ago
JSON representation
A dynamic React quiz app using useReducer for state management. Test your React knowledge with timed challenges.
- Host: GitHub
- URL: https://github.com/collinskchirchir/react-quiz
- Owner: collinskchirchir
- Created: 2023-12-26T07:35:02.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-31T11:04:06.000Z (10 months ago)
- Last Synced: 2023-12-31T18:44:10.685Z (10 months ago)
- Topics: json-server, reactjs, usereducer-hook
- Language: JavaScript
- Homepage:
- Size: 300 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The React Quiz
# Side Project
#### 31/12/2023
#### By Collins Chirchir
## Project Overview
"The React Quiz" is a quiz application built using React and leverages the power of `useReducer` for state management.
The app fetches questions from a Json Server, allowing users to answer React-related questions within a specified time
limit. The final score is computed based on the accuracy of the answers, and the quiz ends either when all questions are
answered or when the timer runs out.## Technologies Used
- **React:** The project is built using React, a popular JavaScript library for building user interfaces.
- **useReducer:** The `useReducer` hook is employed for efficient state management, enabling the application to handle
complex state logic with ease.
- **Json Server:** Questions for the quiz are fetched from a Json Server, providing a simple and lightweight backend for
serving quiz content.## Functionality
- **Quiz Interface:** Users are presented with a user-friendly interface to answer a series of React-related questions.
- **Timer:** A timer is set for each question, creating a time-bound challenge for users.
- **Score Calculation:** The final score is computed based on the accuracy of the answers provided by the user.
- **Quiz Completion:** The quiz ends when all questions are answered or when the timer runs out.
- **Results Display:** After completing the quiz, users are presented with their final score and a summary of their
performance.## Getting Started
1. Clone the repository:
```bash
git clone https://github.com/collinskchirchir/the-react-quiz.git
2. Install dependencies:```bash
npm install
3. Start the Json Server:```bash
npm run server
4. Start the React app:```bash
npm start
5. Open your browser and navigate to http://localhost:3000 to access "The React Quiz."Contribut
## Bugs
No bugs are present in the project.
## Technologies Used
- HTML and CSS
- React
- JSON Server## License
## The MIT License
Copyright (c) 2023 Collins K. Chirchir
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.