How serlisovyk/stuff works
Project type and purpose
• Frontend: React single‑page app with client‑side routing, styled components, state management (Zustand + React‑Query).
• Backend: Node.js + Express REST API following an MVC-ish structure.
File structure
• Top‑level folders:
• client/ – React source code, assets, tests, entry point (index.js), styles
• server/ – Express app, controllers, services, models, routes, middlewares, DB configuration, server.js
• Frontend patterns:
• src/components – reusable UI components (Banner, Sidebar, Product, etc.)
• src/pages – page‑level components (Home, Cart, SingleCategory, SingleProduct)
• src/services – API call wrappers
• src/state – global state (Zustand hooks) and data fetching (React‑Query)
• Backend patterns:
• controllers/ – map HTTP requests to service calls
• services/ – business logic, data validation, orchestration
• models/ – Mongoose schemas for Categories and Products
• routes/ – Express routers that mount controllers
• middlewares/ – error handling, other cross‑cutting concerns
• db.js – MongoDB connection setup
Extract insights from the README
• Technology stack explicitly lists MongoDB, Express, React, Node.js, Sass, Zustand, React‑Query, Webpack.