How mosh-hamedani/game-hub works
Project type and purpose
• GameHub is a single-page application (SPA) built with React and TypeScript, bundled with Vite.
• It is a front-end video-game discovery tool that queries the external RAWG API to fetch game data by platform, genre, search term, etc.
File structure
Top-level files & directories:
• index.html, public/ – static entry point and assets
• src/ – application source code
• components/ – reusable UI pieces (NavBar, GameCard, selectors, skeletons)
• hooks/ – custom React hooks (useGames, useGenres, usePlatforms, useData)
• services/ – API client (api-client.ts), image URL builder
• data/ – static lookup data (genres.ts, platforms.ts)
• theme.ts, App.tsx, main.tsx, App.css, index.css
• vite.config.ts, tsconfig.json – build configuration
README for additional insights
• Confirms front-end focus, use of React, TypeScript, CSS, and connectivity to RAWG via an API key.
• No backend code; all data comes from RAWG’s REST API.
Detail
• Flow of the API key through api-client.ts to the RAWG endpoint.