How sameer240704/game-hub works
Project type and purpose
• This is a full-stack “Game Hub” web application composed of:
• A React/Vite front-end (client/) that hosts multiple mini-games (Wordle, TicTacToe) and a real-time 3D “Sims” simulator.
• A Node.js/Express back-end (server/) that serves the front-end bundles/static assets and provides Socket.io for real-time communication in the Sims game.
File structure
Top-level:
• client/ – all front-end code & static assets
– public/ models/…GLB – 3D assets loaded into the Sims simulator
– src/ – React components, pages, hooks, context, styles, asset imports
· components/game-components – per-game code (Sims & Wordle)
· components/major-components & minor-components – UI building blocks
· components/language-detector – i18next config & selector
· pages/ – route-level containers (LandingPage, game pages)
· hooks/useGrid.jsx – custom hook for Wordle grid
· context/ – React context (e.g. language)
· styles/ – CSS files scoped to components/pages
– vite.config.js – build and dev server configuration
• server/ – back-end
– server.js – Express app wiring up HTTP static serving and Socket.io
– package.json – dependencies like express, socket.io
README for additional insights
• The README only lists the project title “Game_Hub.”
• No explicit architecture notes, so we infer from file layout and code conventions.