Code Monkey home page Code Monkey logo

buy-buddy-app's Introduction

Buy-Buddy E-commerce App

Buy-Buddy is a simple React application that allows users to browse and purchase products from our online store. The application includes a navbar, a home page, a product list page, a product detail page, and a shopping cart page.

Getting Started

To get started with Buy-Buddy, you will need to have Node.js and NPM installed on your computer. Once you have those installed, follow these steps:

  1. Clone the repository to your local machine: git clone "https://github.com/example/buy-buddy.git"
  2. Navigate to the project directory: cd buy-buddy
  3. Install the necessary dependencies: npm install
  4. Start the development server: npm start
  5. Open your web browser and go to "http://localhost:3000"

Components

App

The App component is the top-level component that renders the other components. It uses the BrowserRouter component from the react-router-dom library to enable client-side routing.

Navbar

The Navbar component is a simple navigation bar that displays links to the home page, the product list page, and the shopping cart page. It uses the Link component from the react-router-dom library to enable client-side navigation.

Home

The Home component is the home page of the application. It displays a welcome message and an invitation to start shopping.

ProductList

The ProductList component is the product list page of the application. It fetches a list of products from the fake store API and displays them as links to the product detail page.

Product

The Product component is the product detail page of the application. It fetches the details of a product from the fake store API based on the product ID in the URL and displays them.

ShoppingCart

The ShoppingCart component is the shopping cart page of the application. It displays a list of products that have been added to the cart, which are stored in the CartContext using the useContext hook.

Contexts

CartContext

The CartContext is a simple context that stores the products that have been added to the shopping cart. It is used by the ShoppingCart component to display the contents of the cart.

Dependencies

Buy-Buddy uses the following dependencies:

  • 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.
  • prop-types: attributes that pass data from the parent element to a child element.

Contributing

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

License

  • Buy-Buddy is licensed under the MIT License.

buy-buddy-app's People

Contributors

vkerubo avatar gideonmm avatar nyamwea05 avatar dennismarangu avatar

Watchers

 avatar

buy-buddy-app'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.