Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

The React Quiz



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.