https://github.com/uttammane1/e-commerce-website
This project is a clone of a popular beauty e-commerce site, utilizing a fake API to mimic real-world functionalities and data.
https://github.com/uttammane1/e-commerce-website
css fakeapi html javascript
Last synced: about 1 year ago
JSON representation
This project is a clone of a popular beauty e-commerce site, utilizing a fake API to mimic real-world functionalities and data.
- Host: GitHub
- URL: https://github.com/uttammane1/e-commerce-website
- Owner: uttammane1
- Created: 2024-04-27T14:42:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-27T16:28:10.000Z (about 2 years ago)
- Last Synced: 2025-03-25T08:01:38.304Z (over 1 year ago)
- Topics: css, fakeapi, html, javascript
- Language: JavaScript
- Homepage: https://product-listing-web-application-using-fake-store-api.vercel.app
- Size: 2.93 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Product-Listing-Web-Application-using-FakeStoreAPI
# Usage
To use the Fake Store API, you can make HTTP requests to the following endpoints:
/products: Fetches a list of products.
/products/{id}: Fetches a single product by ID.
/categories: Fetches a list of categories.
/categories/{id}: Fetches a single category by ID.
/users: Fetches a list of users.
/users/{id}: Fetches a single user by ID.
# Documentation
For more information about the Fake Store API, including request and response formats, please see the official documentation at https://fakestoreapi.com/documentation.
## Code Examples
fetch('https://fakestoreapi.com/products')
.then(response => response.json())
.then(data => {
console.log(data);
})
.catch(error => {
console.error('Error fetching products:', error);
});