A modern, responsive e-commerce web application built with HTML5, Bootstrap 5, and JavaScript (ES6+). This application fetches live product data from the FakeStore API and displays products dynamically in responsive grid cards, with dedicated product detail pages.
🚀 Live Demo: https://api-project-2zopz4up3-milan139127.vercel.app/
🔗 Experience the live project here:
👉 View Live Demo on Vercel
- ⚡ Real-time API Integration: Uses JavaScript Fetch API with modern
async/awaitsyntax to retrieve products from FakeStore API. - 🛍️ Product Catalog (
index.html): Dynamically renders product cards with images, titles, descriptions, pricing, and "View Product" buttons. - 🔍 Single Product Details (
product.html): Uses URL search parameters (?id=${id}) to load and display individual product information and high-resolution images. - 📱 Fully Responsive Layout: Styled with Bootstrap 5 for seamless experience across mobile, tablet, and desktop screens.
- 🛡️ Error Handling: Graceful error catching using
try...catchblocks during API calls.
| Technology | Description |
|---|---|
| HTML5 | Semantic structure and markup |
| CSS3 & Bootstrap 5 | Responsive layout and UI styling |
| JavaScript (ES6+) | DOM manipulation, Async/Await, Fetch API, URLSearchParams |
| FakeStore API | REST API providing dummy e-commerce product data |
API-project--JS/
│
├── index.html # Home page: fetches and displays all products
├── product.html # Detail page: fetches and displays single product details
├── script.js # JavaScript file
├── api-project-output.png # Output screenshot preview
└── README.md # Project documentation
Follow these steps to run the project locally on your machine:
git clone https://github.com/mkalsariya9127/API-project--JS.gitcd API-project--JSSimply open index.html in your web browser, or use the Live Server extension in VS Code.
-
Get All Products:
GET https://fakestoreapi.com/products -
Get Single Product:
GET https://fakestoreapi.com/products/{id}
- GitHub: @mkalsariya9127
⭐ If you found this project helpful, please give it a star!
