A simple full-stack e-commerce cart app for internship screening.
- Add / Remove products
- View cart items and total
- Checkout (mock receipt)
- MongoDB persistence
- REST APIs (Express + React frontend)
Frontend: React, CSS, API integration Backend: Node.js, Express Database: MongoDB (Mongoose)
- Open terminal in the backend directory and run
npm install. - Start the server by running
node index.js or nodemon index.js. - Server runs on: http://localhost:5000
- Open terminal in the frontend directory and run
npm install. - Start the frontend by running
npm run dev. - Frontend runs on: http://localhost:5173/
Method Endpoint Description GET /api/products Get all products POST /api/cart Add product to cart DELETE /api/cart/:id Remove from cart GET /api/cart View cart + total Price POST /api/checkout Mock checkout receipt
Amit Maurya Full Stack Developer — Assignment for Vibe Commerce


