How pustamrai/productstore works
Project type and purpose
• This is a full-stack MERN application (MongoDB, Express, React, Node) for product management with image uploads via Multer and Cloudinary.
• It provides CRUD operations on products (add, update, delete, list) and stores image assets in Cloudinary.
File structure
• Top level: two folders, backend and frontend
• Backend follows an MVC-style organization:
• src/controllers → request logic
• src/routes → Express route definitions
• src/models → Mongoose schemas
• src/db → DB connection setup
• src/middleware → Multer file-upload config
• src/utils → Cloudinary helper
• server.js → Entry point
• Frontend is a React/Vite app with:
• src/pages → route-mapped page components
• src/components → shared UI widgets
• src/api → wrapper for HTTP calls to backend
• src/context → React Context state for products
• public/index.html, assets, Tailwind/CSS, Vite config
README for additional insights
• Confirms tech stack: React, Tailwind, Express, MongoDB, Mongoose, Multer, Cloudinary
• Lists API endpoints (/addProduct, /allProducts, etc.)
• Describes features and future enhancements