Skip to content

TopProducts is a React app displaying top-rated products with detailed information. It integrates with json-server.bytexl.app APIs, featuring MUI styling for a user-friendly experience across devices.

Notifications You must be signed in to change notification settings

Yash1Hingu/TopProducts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟 TopProducts React Application

Overview

TopProducts is a responsive React web application designed to display the top N products. The application provides two main pages: one for presenting all the products and another for spotlighting a specific product. It offers detailed information for each product, including the name, company, category, price, rating, discount, and availability.

The project integrates with backend APIs provided by json-server.bytexl.app and uses the MUI (Material-UI) library for styling.

✨ Features

  • 🛍️ Display a list of all products with detailed information.
  • 🔍 Spotlight a specific product with detailed information.
  • 🗂️ Filter products based on category, e-commerce company, rating, price range, and availability.
  • 📊 Sort products by price, rating, discount.
  • 📄 Pagination for smooth navigation.
  • 🖼️ Random assortment of images as product images.
  • 📱 Responsive design with user-friendly UI.

🛠️ Technologies Used

  • ⚛️ React React

  • 🔄 React Router React Router

  • 📦 Axios Axios

  • 🎨 MUI (Material-UI) MUI

  • 📜 JavaScript JavaScript

🚀 Getting Started

Prerequisites

  • 🖥️ Node.js Node.js
  • 📦 npm (Node Package Manager) npm

Installation

📁 Project Structure

TopProducts/
├── public/
│   ├── index.html
│   └── ...
├── src/
│   ├── components/
│   │   ├── ProductDetail.js
│   │   ├── AllProductsPage.js
│   │   └── ...
│   ├── App.js
│   ├── index.js
│   └── ...
├── .gitignore
├── package.json
├── README.md
└── ...

🌐 API Integration

The application integrates with the backend APIs available at json-server.bytexl.app.

Example API Calls

  • Fetch all products:
    axios.get('https://json-server.bytexl.app/products')

🎨 Styling

The application uses the MUI (Material-UI) library for styling. MUI provides a robust, customizable, and accessible library of components, making it easier to build a responsive and user-friendly UI.

About

TopProducts is a React app displaying top-rated products with detailed information. It integrates with json-server.bytexl.app APIs, featuring MUI styling for a user-friendly experience across devices.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published