Skip to content

A simple full-stack e-commerce cart app with - Add / Remove products, View cart items and total Checkout (mock receipt), MongoDB persistence, and REST APIs (Express + React frontend)

Notifications You must be signed in to change notification settings

Amit81082/Mock_e-com_cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Vibe Commerce - Mock E-Com Cart

Overview

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)

Tech Stack

Frontend: React, CSS, API integration Backend: Node.js, Express Database: MongoDB (Mongoose)

Setup Instructions

Backend Setup

  1. Open terminal in the backend directory and run npm install.
  2. Start the server by running node index.js or nodemon index.js.
  3. Server runs on: http://localhost:5000

Frontend Setup

  1. Open terminal in the frontend directory and run npm install.
  2. Start the frontend by running npm run dev.
  3. Frontend runs on: http://localhost:5173/

API Endpoints

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

Screenshots

(image ) image image

image image image

Demo Video

(Project video here)

Author

Amit Maurya Full Stack Developer — Assignment for Vibe Commerce

About

A simple full-stack e-commerce cart app with - Add / Remove products, View cart items and total Checkout (mock receipt), MongoDB persistence, and REST APIs (Express + React frontend)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published