A simple and responsive eCommerce web application built using HTML, CSS, JavaScript and Bootstrap, integrating products from multiple APIs. This project demonstrates product listing, filtering, cart management, wishlist, and checkout functionality.
-
Fetches products from:
- DummyJSON API
-
Combines and displays products in a unified UI
- Search products by title
- Filter by:
- Price range
- Category
- Add to cart
- Increase/decrease quantity
- Remove items
- Auto-save cart using
localStorage
- Add products to wishlist
- Stored in
localStorage - Prevents duplicate entries
- Simple checkout form
- Displays total price
- Clears cart after order placement
-
Shows success messages for:
- Add to cart
- Add to wishlist
- Order placed
- User login and registration
- Form validation for:
- Email format validation
- Password strength requirements
- Required field validation
- HTML5
- CSS3
- JavaScript (Vanilla JS)
- REST APIs
- BootStrap
- Products with thumbnails, categories, and pricing
- Fetch data from both APIs using
Promise.all() - Normalize product structure:
- id
- title
- price
- image
- category
- Merge both datasets
- Store in a global
allProductsarray - Apply filters dynamically
- Manage cart & wishlist using
localStorage
- Clone the repository:
git clone https://github.com/Sanskriti029/Cartify.git- Open project folder:
cd Cartify- Run the project:
- Open
index.htmlin browser
/project
│──pages
│ │──index.html
│ │── cart.html
│ │── shop.html
│ │── wishlist.html
│ │── login.html
│ │── register.html
│ │── wishlist.html
│── css
│ │── styles.css
│ │── cart.css
│ │── wishlist.css
│ │── login.css
│
│── script
│ │── script.js
│
│── uploads
- No backend (frontend-only project)
- No real payment gateway
- API data may vary
- Category mismatch between APIs
- 💳 Payment integration (Stripe/Razorpay)
- 📦 Order history page
- 🔄 Pagination / infinite scroll
- ⚛️ Convert to React.js
- 🎨 Improve UI (Amazon/Flipkart style)
- DummyJSON API
This project is open-source and free to use for learning purposes.
Developed as a practice project to learn:
- API integration
- DOM manipulation
- State management using localStorage
⭐ If you like this project, give it a star!