How jiwankumar12yes/vr-trading-e-com works
Project type and purpose
• This is a MERN-stack (MongoDB, Express, React, Node) e-commerce web application (“VR-Trading-E-Com”) with a RESTful API backend and a React frontend.
• The README’s “E-com Mern Stack App With API” line confirms it’s a full-stack web app designed to sell products online, manage categories, users, orders, and handle authentication.
File structure
• Top-level:
• client/ – React app; build/ contains the production static assets (CSS, JS bundles, index.html, manifest).
• config/db.js – database connection (MongoDB URI, options).
• controllers/ – business-logic handlers (auth, category, product).
• models/ – Mongoose schemas for user, product, category, order.
• routes/ – Express route definitions mapping HTTP endpoints to controller methods.
• middlewares/ – Express middleware (e.g. auth token validation).
• helpers/ – utility functions (e.g. password hashing, token generation).
• server.js – application entry point, Express app setup, middleware registration, route mounting, server listen.
• package.json / package-lock.json – npm dependencies and scripts.