Product App is a modern and responsive E-Commerce web application developed using React.js.
The application provides a smooth online shopping experience where users can browse products, view detailed product information, manage their shopping cart, and maintain a wishlist.
The project uses FakeStore API for fetching real-time product data and demonstrates important React concepts such as component-based architecture, API integration, routing, state management, and reusable UI components.
- User Login functionality
- Login form validation
- Protected page access
- Authentication state handling
- Stores login status using Browser Local Storage
- Redirects users based on login status
The Home page contains:
- Modern landing page design
- Attractive hero section
- Product introduction banner
- Call-to-action button
- Responsive layout
Users can:
- View all available products
- Browse product collections
- See product images
- View product name and price
- Access detailed product information
Products are dynamically loaded from:
FakeStore API
Displays complete information about a selected product:
- Product image
- Product title
- Description
- Price
- Category details
- Add to cart option
- Wishlist option
Cart functionality includes:
- Add products to cart
- Prevent duplicate products
- View selected products
- Remove products from cart
- Cart count update in Navbar
Wishlist features:
- Save favorite products
- Avoid duplicate wishlist items
- View wishlist products
- Remove wishlist items
- Wishlist counter update
User profile section includes:
- User information display
- Account section design
- Clean profile interface
Implemented custom notifications for:
- Product added successfully
- Duplicate cart item warning
- Wishlist updates
- User actions
- React.js
- JavaScript
- HTML5
- CSS3
- React Components
- React Hooks
- useState Hook
- Props Handling
- Conditional Rendering
- State Management
- React Router DOM
- Axios
- FakeStore API
- Browser Local Storage
product-app
β
βββ public
β
βββ src
β β
β βββ components
β β
β βββ About.js
β βββ Cart.js
β βββ Footer.js
β βββ Header.js
β βββ Home.js
β βββ Login.js
β βββ Navbar.js
β βββ ProductDetails.js
β βββ Products.js
β βββ Profile.js
β βββ Wishlist.js
β
β
βββ App.js
βββ App.css
βββ index.js
β
βββ package.json
βββ README.md
git clone https://github.com/your-username/product-app.gitcd product-appnpm installReact Router:
npm install react-router-domAxios:
npm install axiosnpm startApplication runs on:
http://localhost:3000
This project uses FakeStore API.
API Endpoint:
https://fakestoreapi.com/products
Used for:
- Fetching products
- Product images
- Product prices
- Product descriptions
- Categories
Main component responsible for:
- Application state
- Cart management
- Wishlist management
- Login status
- Toast notifications
Handles:
- React Router configuration
- Page navigation
- Protected routes
Contains:
- Navigation links
- Cart count
- Wishlist count
- User navigation
Responsible for:
- API fetching
- Displaying products
- Product actions
Handles:
- User login form
- Validation
- Authentication updates
The application supports:
- Desktop screens
- Tablet screens
- Mobile screens
Implemented using:
- CSS Flexbox
- Responsive layouts
Upcoming improvements:
- User Registration System
- Backend API Integration
- Database Storage
- Admin Dashboard
- Product Upload System
- Order Management
- Payment Gateway Integration
- Product Reviews
- User Authentication using JWT
Through this project:
- Created React components
- Managed application state
- Integrated external API
- Implemented routing
- Managed user interactions
- Built responsive UI
- Used reusable components
- Implemented cart and wishlist logic
--
Thank you for visiting this project!




