A product management application built with Next.js 15 (App Router) and NextAuth.js for authentication.
The app includes a public landing page, product listing & details and a protected dashboard to add products.
-
Landing Page (/)
- Navbar, Hero, Product Highlights, Footer
-
Authentication (/login)
- Login with NextAuth.js (Google or credentials)
- Redirects to
/productsafter login
-
Product List (/products)
- Publicly accessible
- Each product has: Name, Description, Price, Details button
-
Product Details (/products/[id])
- Shows full details of a product
- Publicly accessible
-
Each product has: Name, Description, Category, Stock, Seller, Rating, Price, Details button
-
Protected Page: Add Product (/dashboard/add-product)
- Accessible only when logged in
- Product form to add and save new product
- Redirects unauthenticated users to
/login
- Next.js 15 (App Router)
- NextAuth.js (Authentication)
- TailwindCSS (Styling)
- Route Handlers (/api)
/→ Landing Page (public)/login→ Login Page (NextAuth)/products→ Product List (public)/products/[id]→ Product Details (public)/dashboard/add-product→ Add Product (protected)
- Clone the repository
git clone https://github.com/ismail-dev-code/next-mart cd next-mart