https://github.com/yash1hingu/topproducts
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.
https://github.com/yash1hingu/topproducts
css3 frontend html5 javascript react-router reactjs reastapi
Last synced: about 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/yash1hingu/topproducts
- Owner: Yash1Hingu
- Created: 2024-07-05T16:52:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-05T17:25:07.000Z (almost 2 years ago)
- Last Synced: 2025-07-19T17:59:02.991Z (11 months ago)
- Topics: css3, frontend, html5, javascript, react-router, reactjs, reastapi
- Language: JavaScript
- Homepage: https://top-products.vercel.app
- Size: 59.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🌟 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](https://json-server.bytexl.app/products) 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 Router 
- 📦 Axios 
- 🎨 MUI (Material-UI) 
- 📜 JavaScript 
## 🚀 Getting Started
### Prerequisites
- 🖥️ Node.js 
- 📦 npm (Node Package Manager) 
### 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](https://json-server.bytexl.app/products).
### Example API Calls
- Fetch all products:
```javascript
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.