Skip to content

DiyaWadhwani/ShoppingCartApplication-React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Shopping Cart React Application

Description

This is a React-based shopping cart application that allows users to browse, add, edit, and delete products. The application fetches product data from firebase, enables users to add items to a shopping cart, and provides features for managing the products.

Key Features

  • Browse a list of products with details.
  • Add products to a shopping cart.
  • Edit existing products.
  • Delete products from the catalog.
  • Create new products to be added to the catalog.
  • View a shopping cart with a list of selected products.
  • Remove products from the shopping cart.
  • Calculate the total price of items in the shopping cart.

Getting Started

To run the application locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/your-username/shopping-cart-react.git
    
  2. Navigate to the project directory:

    cd shopping-cart-application
    
  3. Install dependencies:

    npm install
    
  4. Run the application:

    npm start
    
  5. Open your browser and visit the prompted localhost URL to view the application.

Youtube Video Demo

https://youtu.be/ZyyVPK9nUo4

Methods used to build the project

(Quillbot was used to enhance the language here)

Vite, a useful tool for creating web apps, helped the idea take shape. To construct dynamic interfaces, I chose to use React, and the app's sleek style was achieved by combining Bootstrap with custom CSS. Decision-making involved the usage of ChatGPT 3.5, which assisted with UI selections like using specific classNames to make the UI look a certain way, prompts were used to understand how to incorporate reusing the document IDs in a collection to create new documents in a different collection, and ideas on how to implement the hooks to set certain values like the pagination buttons and the count of items present in the cart. I used Firestore for the database, since it makes managing and storing product data simple.

Interactive conversations with ChatGPT during the development phase required troubleshooting through prompts that addressed particular issues. By refining the prompts through iteration, the interaction between human input and AI-generated responses was improved. The collaborative process produced useful information on the effectiveness of utilizing GenAI to perform creative problem-solving and code optimization.

This Shopping Cart Application is a result of teamwork between human input and AI collaboration. I used Vite, React, Bootstrap, and Firebase to create an appealing and simple online application. The recommendations from the discussion with ChatGPT helped me in overcoming challenges and guided my overall creative decisions.

Web-Hosted URL

https://shoppingcart-c69ac.web.app

License

This project is licensed under the MIT License.

About

A React Application that implements a shopping cart. The application uses firebase to fetch the list of products.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors