A modern E-commerce platform built with Next.js and Tailwind CSS.
It supports user authentication with Clerk and uses MongoDB as the database.
- Secure authentication & authorization with Clerk (OAuth, Email, Social Logins).
- Product listing with categories, images, and pricing.
- Shopping cart & checkout flow.
- User profiles (order history, account settings).
- Order management.
- Responsive UI styled with Tailwind CSS.
- Optimized server-side rendering (SSR) & API routes via Next.js.
- MongoDB as the main database for storing users, products, and orders.
- Framework: Next.js
- Styling: Tailwind CSS
- Authentication: Clerk
- Database: MongoDB
- Deployment: Vercel
├── app/ # Next.js App Router │ ├── api/ # API routes │ ├── products/ # Product listing pages │ └── cart/ # Shopping cart & checkout ├── components/ # Reusable UI components ├── lib/ # DB connection, utils ├── styles/ # Global styles (Tailwind config) ├── .env.local # Environment variables └── README.md
-
Clone the repo
git clone https://github.com/Sanket2060/ecommerce-application-NEXTJS cd ecommerce-application-NEXTJS
Install dependencies npm install Create a .env.local file and add the following:
env Copy code
MONGODB_URI=your-mongodb-connection-string
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your-clerk-publishable-key CLERK_SECRET_KEY=your-clerk-secret-key
Run the development server npm run dev App will be live at http://localhost:3000.