An open API service indexing awesome lists of open source software.

https://github.com/akshay-2396/reacttask2

A Simple E-Commerce App using React Router
https://github.com/akshay-2396/reacttask2

context-api javascript react-router reactjs tailwindcss

Last synced: about 2 months ago
JSON representation

A Simple E-Commerce App using React Router

Awesome Lists containing this project

README

          

# 🛒 Add to Cart Task Using React Router

# 📋 Task Overview

This project is a ReactJS-based web application that implements an Add to Cart functionality using React Router. It fetches products from the Fake Store API, displays them on the product page, and allows users to add, remove, and update quantities in the cart with routing between pages.

# 🧩 Features

* Fetch and display product list from Fake Store API.

* Responsive product grid layout.

* Add to Cart functionality.

* Remove from Cart functionality.

* Increase/Decrease product quantity in cart.

* Dynamic total price calculation (with 10% discount applied).

* Proper routing between Product and Cart pages.

* Clean and responsive UI using Tailwind CSS.

# 🚀 Tech Stack

* ReactJS

* React Router

* JavaScript

* HTML

* Tailwind CSS

# 📌 Hints

* Use Fake Store API for fetching product data.

* Handle all price calculations accurately including quantity updates and discounts.

# 📬 Submission

* Deployed app using Netlify

* Submited both Netlify URL and GitHub URL via the submission portal.

# 🚀 Deployment

https://trendyymartt.netlify.app/