Welcome to the Game Hub project! This application allows users to browse, sort and search for video games. The app is a replica of the RAWG.io website and is build using React, Typescript, Chakra UI, and the RAWG API.
- Browse games: Users can browse through a collection of video games.
- Sort games: Sort games by various parameters such as popularity, release date, etc.
- Search games: Search for specific video games by title.
- Responsive Design: The UI is built using Chakra UI, ensuring a responsive and visually appealing design across devices.
Make sure you have the following installed:
- Node.js (v16 or higher)
- npm or yarn
-
Clone the repository:
git clone https://github.com/BrianKiarieMwaniki/game-hub/tree/develop
-
Navigate the project directory:
cd game-hub
-
Install the dependencies:
npm install
or
yarn install
To start the development server, run:
npm run dev
or
yarn dev
This project use Vitest for unit testing. To run the tests, use the following commands:
npm test
npm run test:ui
or
yarn test
yarn test:ui
Testing includes the following:
- Unit tests for React component using Vitest and React Testing Library(RTL).
- Mocking API calls using Mock Service Worker(MSW).