Welcome to the React Trivia Game! This is a simple trivia game built on React, which uses ESLint, Cypress, RTL, Jest, CSS, and JavaScript.
To install the Trivia Game, please follow the steps below:
-
Ensure that you have Node.js at version 18 and npm installed on your computer. If you don't, you can download them from the official Node.js website https://nodejs.org/en/. I recommend NVM for the manage of node's version, you can download it from the official nvm repository https://github.com/nvm-sh/nvm.
-
Clone this repository to your local machine using the following command:
git clone git@github.com:ramonbs/trivia-game.git
- Navigate into the project directory:
cd trivia-game
- Install the required dependencies using npm:
npm install
This command will install all the required packages, including ESLint, RTL, and Jest.
To run the Trivia Game, use the following command:
npm start
This will start a development server, which will allow you to view the game in your web browser. By default, the game will be available at http://localhost:3000.
To run the tests for the Trivia Game, use the following command:
npm test
This will run the Jest test suite, which will test the functionality of the application.
If you would like to contribute to the Trivia Game, please follow the steps below:
-
Fork this repository to your own GitHub account.
-
Clone your fork to your local machine.
-
Make changes to the code on your local machine.
-
Test your changes thoroughly.
-
Commit your changes and push them to your fork.
-
Create a pull request to merge your changes back into the main repository.
We appreciate your contributions to the Trivia Game!