How vmt7308/160store works
Project type and purpose
• This is a full‑stack e‑commerce web application (“160Store”).
• The frontend is a React single‑page application (SPA) under src/ and public/.
• The backend is a Node.js/Express REST API under backend/.
• A relational database (SQL dump 160storeDB.sql) stores users, products, orders, categories, etc.
File structure
• Top‑level directories:
– backend/ (Express server, controllers, models, routes, middleware)
– public/ (static HTML, images, uploaded assets)
– src/ (React app: components, pages, assets, CSS, data)
• backend follows an MVC‑style pattern:
– models/ define data schemas (admin, user, product, order…)
– controllers/ implement business logic (authController, orderController…)
– routes/ wire endpoints to controllers (authRoutes, productRoutes…)
– middleware/ handles authentication (authMiddleware.js)
• Configuration files:
– backend/.env for environment variables
– backend/db.js for database connection
– server.js to bootstrap the Express app
README
• README is empty, but file names indicate standard RESTful API + React client.