Logo

Amazon clone

Full stack MERN e-commerce website

Demo

About The Project

Product Name Screen Shot

Users can create a new account, add and browse items, search for items, add items to the cart, place orders and make payments. Users can access their order history as expected in a real-life app.

Built With

Neact Express React MongoDB Redux Toolkit

Getting Started

Follow the steps below to get run the app in the local environment.

Prerequisites

  • npm

    npm install npm@latest -g

Installation

  1. Clone the repo

    git clone https://github.com/suyashvsingh/amazon-clone
  2. Install NPM packages

    npm install --prefix frontend && npm install
  3. Create a database at Mongo Cloud

  4. Create a .env file.

    MONGO_URI_PRODUCTS_DATABASE = "Enter MongoDB database URL";
    JWT_SECRET = "Enter a JWT secret key";
  5. Start the frontend and backend simultaneously

    npm run dev

Fill products collection

While the backend is running, send a POST request to http://localhost:5000/api/products to populate the products available on the Home page.

POST sample

Information regarding payments

Enter the card number: 378282246310005 for all orders for a successful transaction.

Features

Register and log in

Searching

Add to Cart

Place order

Clear cart

Sign out