Welcome to GamePedia - Our Ultimate Game Hub!
GamePedia is a React-Vite project built to exemplify best practices in React utility. It serves as a clone of rawg.io, providing a comprehensive platform for game enthusiasts. The project leverages the API key from rawg.io, as per the provided documentation.
-
React-Vite: The project is built on the React-Vite framework, ensuring efficiency and high-performance.
-
Chakra UI: Styling components with Chakra UI guarantees a sleek and visually appealing user interface.
-
Axios: Utilized for seamless HTTP requests to the API, ensuring a smooth flow of data.
-
Custom Hooks: Created for clear separation of concerns, enhancing the maintainability of the codebase.
-
React-Icons: Employs the React-Icon library to enhance visual elements within the GameCard component.
-
State Lifting: Efficiently passes data from one component to another, ensuring a cohesive user experience.
Follow these steps to get GamePedia up and running on your local machine:
-
Clone the repository:
git clone https://github.com/yourusername/GamePedia.git
-
Navigate to the project directory:
cd GamePedia
-
Install dependencies:
npm install
-
Obtain an API key from rawg.io documentation.
-
Open
src/services/api-client.ts
file and add your API key:params : { key: your_api_key_here }
-
Start the development server:
npm run dev
-
Open your browser and visit
http://localhost:5173/
to view GamePedia.
We welcome contributions to enhance GamePedia. To contribute, please follow these steps:
-
Fork the repository.
-
Create a new branch for your feature or bug fix:
git checkout -b feature-name
-
Make your changes and commit them:
git commit -m 'Description of changes'
-
Push your changes to your forked repository:
git push origin feature-name
-
Create a Pull Request, providing a detailed description of your changes.
Thank you for using GamePedia! We hope you have a fantastic experience exploring the world of games. If you have any questions or feedback, please don't hesitate to reach out. Happy gaming! 🎮