A modern, full-stack e-commerce platform built with Next.js 15, MongoDB, and Tailwind CSS, offering a seamless shopping experience, real-time analytics, and a mobile-first design.
NextBazaar provides an intuitive and efficient online shopping experience, featuring product browsing, smart filters, user authentication, shopping cart, order management, and a powerful admin dashboard. Built with performance and scalability in mind.
- ποΈ Product Listing, Categories & Filters
- π§Ί Shopping Cart & Checkout Flow
- π€ Authentication & User Management
- π§Ύ Order History & Summary
- π¦ Admin Dashboard with Inventory & Analytics
- π Light/Dark Theme Support
- π± Mobile Responsive & Touch Friendly
- π Form Validation (Zod + React Hook Form)
- π Sales Charts (Chart.js, Recharts)
| Layer | Technology Stack |
|---|---|
| Frontend | Next.js 15, React 19, Tailwind CSS, Radix UI, Framer Motion, Zustand |
| Backend | Next.js App Router (API routes), MongoDB, Mongoose |
| UI & UX | TailwindCSS Animate, Lucide, Heroicons, Tabler Icons, Dark Mode Support |
| Forms | React Hook Form, Zod Validation |
| Charts | Chart.js, Recharts |
nextbazaar/
βββ app/ # App router (pages, layouts, API handlers)
βββ components/ # UI components
βββ lib/ # DB connection, auth, utilities
βββ public/ # Static files
βββ styles/ # Global styles (Tailwind)
βββ types/ # TS interfaces and types
βββ .env.local # Environment variables
βββ tailwind.config.js # Tailwind setup
- Node.js
v18+ - MongoDB instance (local or Atlas)
- Vercel (for deployment)
- Clone the repository:
git clone https://github.com/yourusername/nextbazaar.git
cd nextbazaar- Install dependencies:
npm install- Add environment variables:
Create a .env.local file:
MONGODB_URI=your_mongodb_connection_string
NEXT_PUBLIC_BASE_URL=http://localhost:3000- Run the app:
npm run devThe app will be available at
http://localhost:5173
-
Push your code to GitHub.
-
Import the repo into Vercel.
-
Set environment variables in the Vercel dashboard:
MONGODB_URINEXT_PUBLIC_BASE_URL
Vercel will auto-detect the Next.js project and handle build & deployment.
npm run lintUse Thunder Client or Postman to test your /api routes.
mongooseβ MongoDB ORMzustandβ Global state managementnext-themesβ Dark modechart.js,rechartsβ Sales and analytics visualizationsreact-hot-toastβ Toast notificationsframer-motionβ Smooth transitions@hookform/resolvers+zodβ Form validationradix-uiβ Headless UI components
Licensed under the MIT License.
We welcome contributions from the community!
# Fork the repo
# Create a feature branch
git checkout -b feature/amazing-feature
# Commit your changes
git commit -m "β¨ Add amazing feature"
# Push and open a PR
git push origin feature/amazing-feature- Inspired by modern e-commerce platforms like Flipkart, Amazon, and Shopify
- Thanks to the creators of all open-source tools that power this app
ποΈ Shop Smart. Build Smart. Explore NextBazaar Today!