Skip to content
This is a simple React Quiz Game made with React, Redux, and React-Router, all questions sample data are from internet.
JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config
public
screenshots
server
src
tests
.editorconfig
.eslintignore
.eslintrc
.gitignore
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
LICENSE
README.md
package.json
postcss.config.js
yarn.lock

README.md

Millionaire Quiz Game - React Demo App

Introduction

This is a simple React Quiz Game made with React, Redux, and React-Router, all questions sample data are from internet.

Project Starter Kit: https://github.com/davezuko/react-redux-starter-kit

Configurations

Append New Question

Please feel free to edit file under /public/data.json append new question into data.json array. This is sample question structure:

{
  "question":"A flashing red traffic light signifies that a driver should do what?",
  "A":"stop",
  "B":"speed up",
  "C":"proceed with caution",
  "D":"honk the horn",
  "answer":"A",
  "id":0
 }

Random Picked Questions

Please go to : src/route/Home/modules/QuizReducer.js

You will see initial state defined at line 110

const initialState = {
  questions: [],
  answers: [],
  submited: false,
  showNumOfQuiz: 10
}

Default show 10 random questions from library, please change showNumOfQuiz to what you want.

Install Dependencies

yarn install

Start the server

This command serves the app at http://localhost:3000 and provides basic URL routing for the app:

yarn start

Testing

yarn test

enter image description here

You can’t perform that action at this time.