A complete, beautiful e-commerce marketplace with:
- User registration & authentication
- Product browsing and search
- Shopping cart & checkout
- Order management
- Admin panel to control everything
- Ratings and reviews
- Wishlist feature
mongodnpm installnpm run seednpm run dev- Visit http://localhost:3000
- Click "Login"
- Email:
sajibuddin729@gmail.com - Password:
************** - Click user icon → "Admin Dashboard"
Your Marketplace/
│
├── Frontend (Next.js)
│ ├── app/
│ │ ├── page.tsx → Homepage with products
│ │ ├── admin/ → Admin dashboard
│ │ ├── auth/ → Login & Register
│ │ ├── cart/ → Shopping cart
│ │ ├── checkout/ → Checkout page
│ │ ├── orders/ → Order history
│ │ ├── product/ → Product details
│ │ ├── profile/ → User profile
│ │ └── wishlist/ → Saved items
│ └── components/ → React components
│
├── Backend (Express + MongoDB)
│ └── server/
│ ├── models/ → Database schemas
│ ├── routes/ → API endpoints
│ ├── middleware/ → Authentication
│ └── scripts/ → Database seed
│
└── Documentation
├── QUICKSTART.md → 5-minute setup
├── SETUP.md → Detailed setup
├── ADMIN_GUIDE.md → Admin features
└── README.md → Project overview
Email: sajibuddin729@gmail.com
Password: **************
Full Access: ✅
Create your own by:
- Clicking "Sign Up" instead of "Login"
- Fill in your details
- You'll be logged in automatically
Homepage
- Browse all products
- Filter by category
- Search products
- Add to cart
Product Page
- Detailed product info
- Customer reviews & ratings
- Add to wishlist
- Add to cart with quantity
Shopping Cart
- View all items
- Adjust quantities
- See total price
- Proceed to checkout
Checkout
- Enter delivery address
- Enter phone number
- Confirm order details
- Place order (COD)
Order History
- View all your orders
- See order status
- Track delivery progress
Wishlist
- Save favorite items
- View all saved items
- Move to cart
Account
- Update profile
- Change password
- View contact info
- Manage addresses
Dashboard
- See total orders count
- See total users
- See total products
- See total revenue
- View recent orders
Product Management
- Add new products
- Edit existing products
- Delete products
- Manage stock levels
- Update pricing
Order Management
- View all orders
- See customer details
- See delivery addresses
- Update order status
- Track payments
User Management
- View all customers
- See user details
- View registration date
Homepage
↓
Click User Icon (Top Right)
↓
See Dropdown Menu
↓
Click "Admin Dashboard"
↓
Admin Dashboard Opens
↓
See Products/Orders/Users in Sidebar
- Homepage: http://localhost:3000
- Login: http://localhost:3000/auth/login
- Register: http://localhost:3000/auth/register
- Cart: http://localhost:3000/cart
- Admin: http://localhost:3000/admin (if logged in as admin)
- Products: http://localhost:3000/admin/products
- Go to Admin Dashboard
- Click "Products" in sidebar
- Click "Add New Product"
- Fill in details:
- Name
- Description
- Price
- Category
- Stock quantity
- Image URL
- Click "Save"
Image URLs:
- Unsplash.com (free stock photos)
- Pexels.com (free stock photos)
- Your own hosted images
- Go to Admin Dashboard
- Look for "Recent Orders"
- Click on an order
- Click "Update Status"
- Change status:
- Pending → Shipped → Delivered
- Click "Update"
- Go to Admin Dashboard
- Look at stats cards:
- Total Orders: How many orders placed
- Revenue: Total money value
- Users: How many customers
- Products: How many items
Workflow:
- Order placed by customer (Status: Pending)
- You verify address and details
- Pick product from inventory
- Pack and prepare shipment
- Update status to "Shipped"
- Customer receives
- Update status to "Delivered"
Edit app/globals.css and update color values:
:root {
--primary: 17 88% 40%; /* Main brand color */
--secondary: 40 89% 46%; /* Accent color */
--accent: 340 60% 50%; /* Highlight color */
}- Edit
components/Header.tsx - Find
<Link href="/" className="text-2xl font-bold text-primary"> - Change "Artisan" to your store name
Edit components/Hero.tsx to update:
- Headline
- Subtitle
- Background image
- Call-to-action button
- Create new file in
app/folder - Example:
app/about/page.tsx - Add to header navigation in
components/Header.tsx
# Kill process on port 3000
lsof -i :3000
kill -9 <PID>
# Kill process on port 5000
lsof -i :5000
kill -9 <PID>- Make sure
mongodis running - Check
MONGODB_URIin.env.local - Default should be:
mongodb://localhost:27017/marketplace
- You must be logged in as the admin user
- The sajibuddin729@gmail.com account has admin privileges
- Customer accounts won't see the Admin Dashboard button
- Check backend is running (port 5000)
- Verify
NEXT_PUBLIC_API_URLin.env.local - Look at browser console for error messages
- Check email is correct (case-sensitive)
- Verify password exactly
- Make sure database is connected
- Try refreshing page
- Explore - Walk through the whole app as customer
- Add Products - Add your first product from admin
- Test Order - Place a test order as customer
- Manage - Process the order from admin
- Customize - Update colors and branding
- Deploy - Host on Vercel when ready
- QUICKSTART.md - 5-minute quick setup
- SETUP.md - Complete setup instructions
- ADMIN_GUIDE.md - Full admin feature guide
- README.md - Project overview
- Check browser console (F12 → Console)
- Check Network tab for API errors
- Verify
.env.localhas correct API URL
- Check terminal output for errors
- Verify MongoDB is running
- Check
.env.localhas MongoDB connection
- Ensure MongoDB daemon is running
- Check database is created:
mongodb://localhost:27017/marketplace - Re-run seed script if needed:
npm run seed
- Run seed script
- Login as admin
- Review dashboard
- Check sample products
- Update store name
- Change colors
- Add your logo
- Update hero section
- Add 5 new products
- Set accurate prices
- Upload product images
- Organize by category
- Create customer account
- Add products to cart
- Place test order
- Update order status
- Mark as delivered
- Review all content
- Test all features
- Deploy to Vercel
- Share with users
Your marketplace is fully set up with:
- ✅ 12 sample products with images
- ✅ Admin account for management
- ✅ Customer registration & login
- ✅ Complete shopping experience
- ✅ Order management system
- ✅ Beautiful responsive design
Start at http://localhost:3000 and explore!
Questions? Check the other documentation files for detailed information.