HAATBAZAR is a modern e-commerce platform specializing in fresh groceries and produce. Built with Next.js 14 and MongoDB, it offers a seamless shopping experience with features like user authentication, cart management, wishlist functionality, and multiple payment options including Khalti integration.
- User Authentication - Secure sign-up and login
- Product Browsing - Browse products by category with sorting and filtering
- Shopping Cart - Add, update, and remove items
- Wishlist - Save items for future purchase
- Order Management - Track order status and history
- Multiple Payment Methods - Pay with Khalti, eSewa or cash on delivery
- Responsive Design - Optimized for mobile, tablet, and desktop
- Toast Notifications - User-friendly notifications for actions
- Clone the repository
- Install dependencies
- Set up environment variables
- Create a
.env.localfile in the root directory with the following:
- Create a
- Run the development server
- Open
http://localhost:3000in your browser
haatbazar/
├── public/ # Static assets
├── src/
│ ├── app/
│ │ ├── (auth)/ # Authentication pages
│ │ ├── (pages)/ # Main application pages
│ │ ├── (server)/ # Server actions
│ │ └── api/ # API routes
│ ├── components/ # Reusable UI components
│ ├── context/ # React context providers
│ ├── hooks/ # Custom React hooks
│ ├── lib/ # Utility functions
│ └── models/ # MongoDB schema models
├── .env.local # Environment variables
├── next.config.js # Next.js configuration
└── tailwind.config.js # Tailwind CSS configuration
- User registration with email/password
- Social login with Google
- Secure session management
- Comprehensive product details
- Product categorization
- Search functionality
- Real-time cart updates
- Address management
- Multiple payment options
- Order confirmation
- Order history
- Wishlist management
- Profile settings
- Protection against CSRF attacks
- Secure authentication with NextAuth.js
- Input validation and sanitization
- Secure storage of user credentials
The application is configured for easy deployment on Vercel.
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ in Nepal
© 2024 HAATBAZAR. All Rights Reserved.
