My React e-commerce project is DONE.
Built:
→ Product browsing + categories
→ Product details
→ Cart with Context API
→ Quantity management
→ Dynamic pricing
→ Empty cart state
→ React Router navigation
→ Responsive UI
Learned a lot about managing and transforming state
One thing this project really helped me understand was when to use map(), filter() and reduce().
map() → create an updated version of the cart
filter() → remove a specific product
reduce() → calculate values like the subtotal
The cart was probably the most valuable part of the project.
I implemented:
→ Adding products
→ Handling duplicate products with quantities
→ Increasing/decreasing quantities
→ Removing products
→ Dynamic subtotal calculation
→ Empty-cart state
What I used ⚛️
• React
• Context API for cart state
• React Router for navigation
• useState for local state
• useEffect for fetching products
• useContext for accessing cart data
What is ShopSphere?
ShopSphere is a frontend e-commerce application I built with React.
Users can browse products, filter by category, view individual product details, add products to their cart, change quantities, remove products, and see their subtotal update dynamically.
Finally finished learning CSS.
-Covered everything from the fundamentals to layouts, responsive design, and animations.
-Still learning, still building, still making random shit move on the screen until it looks cool 🤣
Also made this loading animation!!
#CSS
Future Improvements:
-UI (MAJOR NEED)
-Need to implement the recent transactions while the user views bank details (like what amount was the last depost/withdraw)
:Will come back to that once i'm familiar with structs and references!
Criticize me if I did anything wrong! Peace^^
I was only hooked to python this much bro 😭
Anyways, made a simple bank management app (lame) which shows balance, let's you withdraw or deposit and also guides/tells you if entered limit is too absurd!!
(had to scratch my head for logics quite abit)
#Cpp
And finally Navigation Flow:
Navbar
│
│── Home
│── About
│── Contact
│── Courses
│ └── /Courses/:id
│── Product
├── Men
└── Women
Invalid URL
│
▼
404 Not Found
8. Component-Based Architecture
Organized the application into reusable components.
Examples:
Navbar
Footer
Separate page components:
Home
About
Contact
Courses
Product
Men
Women
NotFound