Mobile Commerce is a full-stack Next.js application developed on October 26, 2025, to provide a seamless online shopping experience for mobile and desktop users. It includes public product browsing, user authentication, cart functionality with quantity controls, profile management, and an admin dashboard for adding new products. Built with Next.js, React, Tailwind CSS, JavaScript, and MongoDB, the platform ensures responsive design, real-time data handling, and secure role-based access, demonstrating expertise in full-stack development, authentication, and e-commerce workflows.

The landing page displays a grid of product cards with images, titles, and prices, accessible to all users without login.
Unauthenticated users can browse products but are redirected to /login when attempting to add items to the cart.

Unauthenticated users attempting to access protected actions (like adding to cart) are redirected to the /login route with a secure login form.
The /register route allows new users to create accounts with name, email, and password, with seamless navigation between login and registration.


The /products route displays all available products in a grid layout, accessible via the navbar.
Logged-in users can click 'Add to Cart' on any product, instantly updating the cart count in the navbar.
Advanced search and filtering options allow users to search products by name or description, filter by price range, and sort by A-Z, Z-A, price low to high, or high to low.
Clicking a product image navigates to the dedicated product detail page at /product/[id].

Accessible by clicking any product image from the landing page or /products route, this dynamic route shows full product details including high-resolution image, title, description, price, discount, category, SKU, and inventory status.
Users can add the product to cart directly from this page with quantity controls.
![Product Detail Page (/product/[id]) image 1](/_next/image?url=%2FP21_4_1.png&w=3840&q=75)
Accessible via the cart icon in the navbar, the /cart route shows all items added by the user with product image, title, price, and quantity.
Users can increment/decrement quantity, remove items, and proceed to checkout with a dedicated button.

The /billing route provides a complete order summary including all cart items, quantities, individual prices, and the total amount.
Users fill out a debit card payment form to complete the purchase. Upon clicking 'Make Payment', a green success message appears along with a detailed payment payslip confirming the transaction.


Logged-in users access the /profile route via the profile icon in the navbar to view and edit their name, upload/change profile photo, and update their password with verification.
The interface ensures secure and user-friendly profile management.

Admins see an additional 'Admin' link in the navbar, leading to the /admin route where they can add new products by filling a form with ID, title, description, image, inventory, price, discount, category, and SKU.
All fields are validated and stored in MongoDB for immediate availability across the platform.

Built with Next.js for server-side rendering, dynamic routing, and optimal performance across all pages.
Integrates MongoDB for real-time product, user, cart, and order data management, with Tailwind CSS ensuring a modern, responsive design.
Features dynamic product detail pages, advanced search/filter/sort on product listing, and a complete billing & payment flow with success confirmation.