A full-featured e-commerce platform built with Next.js 14, TypeScript, Tailwind CSS, Firebase, and Claude AI.
npm installnpm run dev| Role | Password | |
|---|---|---|
| User | user@example.com | 123456 |
| Admin | admin@example.com | 123456 |
Click "User Demo" or "Admin Demo" buttons on the login page for instant access.
- Go to Firebase Console
- Create a new project
- Enable Authentication → Email/Password + Google
- Enable Firestore Database
- Copy your config to
.env.local:
cp .env.example .env.local
# Then fill in your Firebase credentialsThe AI chatbot is powered by Claude. It works automatically in the deployed version. For local development, the chatbot will work if you have internet access.
src/
├── app/ # Next.js App Router pages
│ ├── page.tsx # Home (12 sections)
│ ├── products/ # Product listing + detail
│ ├── cart/ # Shopping cart
│ ├── checkout/ # Checkout flow
│ ├── auth/ # Login + Register
│ ├── dashboard/
│ │ ├── user/ # User dashboard (5 pages)
│ │ └── admin/ # Admin dashboard (7 pages)
│ ├── blog/ # Blog listing + post
│ ├── about/ # About page
│ ├── contact/ # Contact page
│ ├── help/ # Help center
│ ├── privacy/ # Privacy policy
│ └── terms/ # Terms & conditions
├── components/
│ ├── layout/ # Navbar, Footer
│ ├── products/ # ProductCard, Skeleton
│ └── ai/ # AI Chatbot
├── context/ # Auth + Cart context
├── lib/ # Firebase, mock data
└── types/ # TypeScript interfaces
- Home — 12 sections (hero, categories, featured, promo, popular, stats, services, testimonials, blog, FAQ, newsletter, CTA)
- Products — search, 4 filters, sorting, pagination, skeleton loading
- Product Detail — gallery, tabs (description/specs/reviews), related products
- Cart — quantity controls, promo code, order summary
- Checkout — shipping + payment form with validation
- Login — demo buttons, Google login, form validation
- Register — password strength meter, form validation
- User Dashboard — overview, orders, profile, wishlist, settings
- Admin Dashboard — overview, users, products, orders, analytics, coupons, settings
- Blog — listing with search/filter, full article view
- About, Contact, Help, Privacy, Terms
- Next.js 14 App Router
- TypeScript throughout
- Tailwind CSS
- Dark Mode (full support)
- Fully Responsive (mobile/tablet/desktop)
- Firebase Auth (demo mode fallback)
- React Hook Form + validation
- AI Chatbot (Claude API)
- Recharts (Bar, Line, Area, Pie charts)
- Role-based dashboard (User + Admin)
- Skeleton loaders
- Toast notifications
| Technology | Usage |
|---|---|
| Next.js 14 | Framework |
| TypeScript | Type safety |
| Tailwind CSS | Styling |
| Firebase | Auth + Database |
| Claude API | AI Chatbot |
| Recharts | Dashboard charts |
| React Hook Form | Form handling |
| next-themes | Dark mode |
| Framer Motion | Animations |
| react-hot-toast | Notifications |
| lucide-react | Icons |
npm run build
npm startnpx vercel