A React app for browsing the highest-rated video games, powered by the RAWG API.
Built to get hands-on experience with Redux and real-world API integration. The RAWG API returns a lot of nested data, so it was a good challenge to model that in a Redux store and keep the UI in sync. API calls are proxied through Netlify serverless functions to avoid exposing the API key in the client bundle.
- 🎮 Browse top-rated games filtered by date and score
- 🔍 Search games by title
- 📋 Game detail modal with cover image, description, rating and screenshots
- 🕹️ Platform icons for each game
- ✨ Smooth animations powered by Framer Motion
| Layer | Technology |
|---|---|
| UI | React 17 |
| State | Redux + Redux Thunk |
| Routing | React Router DOM v5 |
| Styles | Styled Components |
| Animations | Framer Motion + react-lottie |
| API proxy | Netlify Functions |
| Data | RAWG API |
- Get a free API key at rawg.io
- Create a
.envfile in the root:
REACT_APP_API_KEY=your_rawg_api_key- Install and run:
npm install
npm startOpen http://localhost:3000 in your browser. The dev server proxies Netlify functions via localhost:9999.
| Function | Purpose |
|---|---|
all |
Paginated game list |
gamedetails |
Single game detail and screenshots |
search |
Search by title |
| Command | Description |
|---|---|
npm start |
Start dev server |
npm run build |
Build for production |
npm test |
Run tests |
Found a bug or have an idea? Feel free to open an issue.
MIT
