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.
- 🛍️ 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.
TopProducts/
├── public/
│ ├── index.html
│ └── ...
├── src/
│ ├── components/
│ │ ├── ProductDetail.js
│ │ ├── AllProductsPage.js
│ │ └── ...
│ ├── App.js
│ ├── index.js
│ └── ...
├── .gitignore
├── package.json
├── README.md
└── ...
The application integrates with the backend APIs available at json-server.bytexl.app.
- Fetch all products:
axios.get('https://json-server.bytexl.app/products')
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.