This project is a game that is an adaptation of the popular show Who wants to be a millionaire.💰
Written using React and TypeScript.
Application has the following rules:
- The player takes turns answering one of 12 questions.
- Each question has 4 possible answers (there is a possibility of more). One or more correct answers are possible. This is stated in the question.
- If the answer is correct, the player gets to the next question.
- If the answer is wrong, the player goes to the final screen.
- The final screen shows the overall result of the game.
- Add a state manager to the implementation(for better testing functions and isolating state control logic)
- Add clearer typing and handling of errors
- Improve accessibility with more WAI-ARIA
This project was bootstrapped with Create React App.
First of all, you will need Node.js of version 12.18.3
or compatible with it, npm version 6.14.6
or compatible, and git 2.25.1
or compatible.
Check if everything is OK by running node -v
, npm -v
and git --version
in the CLI
In the project directory, you can run:
This command helps to install all the necessary dependencies from the package.json
before starting another actions with the project
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about jest for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.
The predeploy
script will run automatically before deploy
is run.
This command allows you to deploy the project via GitHub Pages from the url with key "homepage"
in package.json
.
The eslint
script will run ESLint on src/
directory.
The following pre-hooks are also configured on the project:
pre-commit
- before the commit, the hook will check the project code for compliance with the lint rules.pre-push
- will run all tests before pushing.
You can learn more in the Create React App documentation.