Git Product home page Git Product logo

omrfrkcpr / react-shopping-cart Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 24.32 MB

A single page react application where you can add new products to your shopping list via the database, then view and update them in your cart.

Home Page: https://reactjs-shopping-cart-app.netlify.app/

License: GNU General Public License v3.0

HTML 4.82% JavaScript 95.18%
mockapi react react-bootstrap react-hooks react-icons react-router-dom single-page-app

react-shopping-cart's Introduction

React Shopping Cart ©️

💻 https://reactjs-shopping-cart-app.netlify.app/

Description

The project will be a single-page web application where users will be able to add new products to their shopping lists, store these products on a mock API and update them in their shopping carts. A user-friendly interface will be designed using React and transition between pages will be provided using React Router.

Outcome 🎦

react-shopping-cart

Project Planning & Management

Epic User Story: Developing a Shopping Cart Application 🎖️

User Stories:

1️⃣ Listing Products:

  • 🥇 Create components to display existing products.
  • 🥈 Fetch and list products from the mock API.
  • 🥉 Style the product listing with CSS.

2️⃣ Adding Products

  • 🥇 Develop components for users to add new products.
  • 🥈 Implement functions to save new products to the mock API.
  • 🥉 Perform validation on the product addition form.

3️⃣ Shopping Cart Operations

  • 🥇 Create components for users to view their shopping carts.
  • 🥈 Fetch and list products from the mock API for the shopping cart.
  • 🥉 Implement functions to update and delete product quantities in the cart.
  • 🥉 Design and style the cart page layout.

4️⃣ Interface Design and Enhancements

  • 🥇 Design the overall user interface and improve usability.
  • 🥈 Make necessary corrections and enhancements based on user feedback.
  • 🥉 Ensure responsive design for mobile devices.

5️⃣ Creating About Page

  • 🥇 Design and implement the layout for the About page.
  • 🥈 Add relevant content such as information about yourself.
  • 🥉 Style the About page with CSS.

6️⃣ Creating Main Page

  • 🥇 Set up the main landing page layout.
  • 🥈 Include navigation links to other pages.
  • 🥉 Design and implement any additional features on the main page.

7️⃣ Implementing New Product Page

  • 🥇 Develop a form for users to input new product details.
  • 🥈 Add validation to the new product form.
  • 🥉 Implement functionality to submit new product data.

8️⃣ Implementing Product List Page

  • 🥇 Display a list of available products fetched from the mock API.
  • 🥈 Add filtering or sorting options to the product list.
  • 🥉 Include buttons or links to view details or update products.

9️⃣ Implementing Update Product Page

  • 🥇 Create a form pre-filled with selected product details.
  • 🥈 Allow users to update product on shopping cart.
  • 🥉 Implement functionality to update product data.

Additional Requirement: 💥

  • The application should have a responsive design.

Project Skeleton 🩻

Shopping Cart (folder)
|
├── public
│     └── index.html
├── src
│   ├── assets
|   |
│   ├── components
│   │       ├── Navbar.jsx
│   │       ├── Product.jsx
│   │       ├── ProductCard.jsx
│   │       ├── ProductForm.jsx
│   │       ├── Products.jsx
│   │       └── Summary.jsx
|   |
│   ├── pages
│   |     ├── About.jsx
│   |     ├── Main.jsx
│   |     ├── NewProduct.jsx
│   |     ├── ProductList.jsx
│   |     └── UpdateProduct.jsx
|   |
|   ├── router
|   |     └── AppRouter.jsx
|   |
│   ├── App.css
│   ├── App.js
│   ├── index.css
│   ├── index.js
│   └──reportWebVitals.js
|
├── .gitignore
├── LICENSE
├── package-lock.json
├── package.json
├── react-shopping-cart.gif
└── README.md

Objective

Build a Shopping Cart App using ReactJS.

At the end of the project, following topics are to be covered; 🎯

  • HTML & CSS & JS

  • ReactJS

  • React Router & Hooks

  • Mock API

At the end of the project, will be able to; 💪

  • improve coding skills within HTML & CSS & JS & ReactJS.

  • use git commands (push, pull, commit, add etc.) and Github as Version Control System.

MockApi 📦

MockApi

Contributing 🤝

Your insights and contributions greatly enrich my projects! Whether you're bursting with fresh project concepts or have ideas to enhance existing ones, your input is invaluable. Feel free to open an issue to initiate a dialogue about your thoughts, or submit a pull request with your proposed modifications. Every contribution plays a vital role in my growth and improvement, so thank you for being an integral part of my community!

LICENSE 🪪

This repository is licensed under the GNU General Public License v3.0 License. See the GPL licence file for details. For more information please visit GNU License

☺ Happy Coding ✍

react-shopping-cart's People

Contributors

omrfrkcpr avatar

Watchers

 avatar

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.