Giter Site home page Giter Site logo

e-commerce-site's Introduction

Wow-Store eCommerce Platform

Welcome to the Wow-Store, an eCommerce application built with the MERN stack! This is a portfolio project that showcases an online shopping experience, from product listings to user authentication and online payments. The backend is powered by Express and MongoDB, and the frontend was made with React, Redux, and Bootstrap.

Live Site (initial load might be slow)

Features:

Orders:

  • Create new orders.
  • Payment functionality using PayPal sandbox.
  • Retrieve all orders made by a logged-in user.
  • Fetch specific order details by order ID.
  • Update order status to 'paid'.
  • Update order status to 'delivered'.
  • Admin functionality to view all orders.

Products:

  • Fetch all products with pagination and search functionality.
  • Retrieve details of a specific product by its ID.
  • Admin functionality to create a new product with default sample data.
  • Admin functionality to update product details.
  • Admin functionality to delete a product.
  • Users can post reviews for products.
  • Top-rated products featured on a product carousel.

Users:

  • User authentication using json web tokens.
  • Register a new user.
  • Logout functionality that clears the authentication cookie.
  • Fetch and update the profile of the logged-in user.
  • Admin functionality to fetch all users.
  • Admin functionality to fetch a user by ID.
  • Admin functionality to delete a user.
  • Admin functionality to update user details.

Tech Stack:

  • MongoDB
  • Express.js
  • React
  • Node.js
  • Redux
  • Bootstrap

Screenshot1 Screenshot2 Screenshot3 Screenshot3

Backend Setup:

  1. Navigate to the root directory and install dependencies:

    npm install
  2. Set up your environment variables in a .env file in the root directory:

    MONGO_URI=your_mongodb_uri
    JWT_SECRET=your_jwt_secret
    PAYPAL_CLIENT_ID=your_paypal_client_id
  3. Populate the database with sample data:

    npm run data:import
  4. Start the backend server:

    npm run server

Frontend Setup:

  1. Navigate to the frontend directory and install dependencies:

    cd frontend && npm install
  2. Start the frontend development server:

    npm start

Running Both Frontend & Backend:

  • From the root directory, you can run both frontend and backend concurrently:
    npm run dev

Links:

e-commerce-site's People

Contributors

alexmc2 avatar

Watchers

 avatar

e-commerce-site's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.