Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ddddami/game-hub
A beautiful website for video games discovery
https://github.com/ddddami/game-hub
gamehub react typescript zustand
Last synced: about 2 months ago
JSON representation
A beautiful website for video games discovery
- Host: GitHub
- URL: https://github.com/ddddami/game-hub
- Owner: ddddami
- Created: 2023-12-30T18:38:39.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-08T21:46:28.000Z (7 months ago)
- Last Synced: 2024-06-08T23:22:17.494Z (7 months ago)
- Topics: gamehub, react, typescript, zustand
- Language: TypeScript
- Homepage: https://gamehub-dd.vercel.app
- Size: 161 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GameHub
[Live Preview](https://github.com/ddddami/game-hub)
## Setup
You have to have a 'sane' version of node on your system.
You can install one @nodejs.org (this project uses nodev20)
#### Clone the project,
`git clone https://github.com/ddddami/game-hub.git`
#### Install all the dependencies
`npm install`
#### Get an API key
All the games and metadata are from RAWG API. Big shoutout to the guys at RAWG.
Get an API key from [rawg.io](https://rawg.io/apidocs), create a .env at the root of your project.`VITE_RAWG_API=`
#### Run the project
`npm run dev`
---
## Features of the app
### UI
Leveraged Chakra UI (by Segun Adebayo)'s beautiful and extensible components to create an accessible and responsive user interface for this app.
### State Management
- Utilized the Context API for efficient global state management
- Used Zustand, a lightweight and performant state management library (Yes, no redux nonsense)### Routing
Implemented routing client-side routing using React Router v6.
### Tanstack Query..
This was useful for quite a number of useful features in the app
- Infinte queries
- Efficiently managing server state
- Caching (You probably didn't noticed)
- Automatic retries, refetch (yes, react query is niceπ)---
And that's it..
I'm happy if you find this project interesting, you can create an issue if you'd like to suggest anything.I'd also like to say a big thank you to [Mosh](https://x.com/moshhamedani) for his awesome course and helping me build my coding skills.