How lucasbeck1/videogames_webpage works
Project type and purpose
• This is a classic full-stack web application named “Henry Videogames.”
• Purpose: provide a searchable, filterable videogame catalog, support adding new games, fetch data from a third-party API (RAWG), and store custom entries in a PostgreSQL database.
File structure
• Top-level split:
• api/ ← Backend
• client/ ← Frontend
• api/
• index.js, src/app.js → Express app entry points
• src/db.js → Sequelize setup & Postgres connection
• src/models/ → Sequelize models (Genre, Videogame)
• src/routes/ → Express routing
• tests/ → unit/integration tests for models & routes
• client/
• public/ → static HTML, manifest, robots.txt
• src/Components/ → React view components & CSS modules
• src/Redux/ → Redux store, actions, reducer
• src/Back_data/ → sample JSON for local dev/testing
• src/index.js → React root
• tests, utilities, assets
README for additional insights
• Tech stack: React, Redux, CSS on the frontend; Node, Express, Sequelize, PostgreSQL on the backend
• Features: search/filter/order games, random recommendation, create new games
• External dependencies: RAWG HTTP API (via API_KEY)
Elements
• Middleware (e.g., CORS, JSON parser) between client and server if desired.
Final advice
• Don’t hesitate to show the test suite as an optional side-car to the API.