Coder Social home page Coder Social logo

ebuy-app's Introduction

eBuy E-commerce App

eBuy is a simple e-commerce web application built with React, which allows users to browse products, add items to cart, and purchase products.

Getting Started

Prerequisites

Node.js NPM or Yarn

Installation

  1. Clone the repository

"git clone https://github.com/[your_username]/eBuy.git"

  1. Navigate into the project directory

cd eBuy

  1. Install dependencies

npm install

Usage

  1. Start the application

npm start

Features

  • Browse products.
  • Add items to cart.
  • Increase or decrease item quantity in cart.
  • Remove items from cart.
  • Clear cart.
  • Checkout and purchase products.
  • Responsive design.

Technologies Used

  • React: a JavaScript library for building user interfaces.
  • React Router: a collection of navigational components for React.
  • React Context API: a way to pass data through the component tree without having to pass props down manually at every level.
  • Fetch API: a modern, Promise-based JavaScript API for making network requests.
  • CSS Modules: a CSS file in which all class names and animation names are scoped locally by default.
  • Bootstrap: a popular CSS framework.
  • Font Awesome: a font and icon toolkit based on CSS and Less.

Component Descriptions

Footer

The Footer component displays links to social media accounts and company information.

Header

The Header component displays the site logo and a search bar.

ProductCard

The ProductCard component displays product information including the product image, name, and price.

ProductDetails

The ProductDetails component displays more detailed information about a selected product, including the product image, name, price, and description.

Sidebar

The Sidebar component displays the cart, allowing users to view items in the cart, adjust item quantities, and remove items from the cart.

Context Descriptions

CartContext

The CartContext provides information on the items in the user's cart, the total number of items, and the total price of the items. The CartContext also provides functions for adding items to the cart, removing items from the cart, increasing or decreasing item quantities, and clearing the cart.

ProductContext

The ProductContext provides information on the available products, including product name, price, and image.

SidebarContext

The SidebarContext provides information on the state of the sidebar, including whether it is open or closed, and provides functions for opening and closing the sidebar. It is used by the Sidebar component to control the visibility of the sidebar.

Authors

  • Valentine Kerubo.
  • Sandra Nyamwea.
  • Gideon Mutugi.
  • Dennis Mutuma Marangu.

License

MIT License.

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.