Skip to content

πŸ›οΈ NextBazaar is a full-featured e-commerce platform built with Next.js, MongoDB, and Tailwind CSS β€” offering modern UI, shopping cart, order management, and an admin dashboard with analytics.

Notifications You must be signed in to change notification settings

5a1n1hritik/NextBazaar_E-commerce-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

39 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ NextBazaar

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.

Live Demo License: MIT


🧭 Overview

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.


πŸš€ Features

  • πŸ›οΈ 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)

πŸ› οΈ Tech Stack

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

πŸ“ Project Structure


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


πŸ§‘β€πŸ’» Getting Started

βœ… Prerequisites

  • Node.js v18+
  • MongoDB instance (local or Atlas)
  • Vercel (for deployment)

πŸ”§ Local Setup

  1. Clone the repository:
git clone https://github.com/yourusername/nextbazaar.git
cd nextbazaar
  1. Install dependencies:
npm install
  1. Add environment variables:

Create a .env.local file:

MONGODB_URI=your_mongodb_connection_string
NEXT_PUBLIC_BASE_URL=http://localhost:3000
  1. Run the app:
npm run dev

The app will be available at http://localhost:5173


βš™οΈ Deployment

πŸš€ Deploying to Vercel

  1. Push your code to GitHub.

  2. Import the repo into Vercel.

  3. Set environment variables in the Vercel dashboard:

    • MONGODB_URI
    • NEXT_PUBLIC_BASE_URL

Vercel will auto-detect the Next.js project and handle build & deployment.


πŸ” Testing & Linting

npm run lint

Use Thunder Client or Postman to test your /api routes.


πŸ“¦ Packages of Interest

  • mongoose – MongoDB ORM
  • zustand – Global state management
  • next-themes – Dark mode
  • chart.js, recharts – Sales and analytics visualizations
  • react-hot-toast – Toast notifications
  • framer-motion – Smooth transitions
  • @hookform/resolvers + zod – Form validation
  • radix-ui – Headless UI components

πŸ›‘οΈ License

Licensed under the MIT License.


🀝 Contributing

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

πŸ™Œ Acknowledgements

  • 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!

About

πŸ›οΈ NextBazaar is a full-featured e-commerce platform built with Next.js, MongoDB, and Tailwind CSS β€” offering modern UI, shopping cart, order management, and an admin dashboard with analytics.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published