GadgetKing is a modern, responsive e-commerce web application built with React.js. It allows users to browse, filter, and purchase smartphones, laptops, and accessories.
The application demonstrates real-world frontend e-commerce functionality using React Context API, React Router, and Tailwind CSS, with dynamic filtering, sorting, and a fully functional shopping cart with configurable product variants.
👉 GadgetKing Live Site
https://gadgetkingstore.netlify.app/
- Category Browsing — Navigate between Smartphones, Laptops, and Accessories.
- Product Search — Live search by product name.
- Filters & Subcategories — Filter by category and subcategory (Premium, Mid-Range, Affordable).
- Sorting — Sort products by price (Low → High, High → Low).
- Shopping Cart — Add products with configurable options (RAM, SSD, Storage), update quantities, and view total cost.
- Responsive Design — Fully mobile-friendly and optimized for all screen sizes.
- SPA Navigation — Fast page transitions using React Router.
- Frontend: React.js, Tailwind CSS
- Routing: React Router DOM
- State Management: React Context API
- Icons: Lucide React
- Currency Formatting:
Intl.NumberFormat(NGN)
gadgetking/
└── frontend/
├── assets/ # Images and icons
├── components/ # Reusable components
├── context/ # ShopContext for global state
├── layouts/ # NoPaddingLayout & PaddingLayout
├── pages/ # Home, Shop, Offers, etc.
├── App.jsx # Main app component
└── index.js # Entry point
git clone https://github.com/nobledevstudio/GadgetKing.git
cd gadgetking/frontend
npm install
npm run devnpm run buildDeploy the generated build folder on Netlify, Vercel, or Render.
⚠️ For Netlify SPA routing, ensure a_redirectsfile is configured.
- Navigate categories from the home page.
- Filter and sort products.
- Search products using the search bar.
- Select product options before adding to cart.
- View and update the cart.
- Dynamic filtering using
useStateanduseEffect - Price sorting with helper functions
- Global cart management using React Context API
- Query-based routing (
/shop?category=Smartphone)
- Backend API integration
- Authentication and persistent cart
- Payment gateways (Paystack, Flutterwave, Stripe)
- UI/UX animations and ratings
NobleDevStudio