A modern eCommerce web application built with Next.js 15, providing a seamless shopping experience with user authentication, product browsing, and a shopping cart system.
Follow these instructions to set up and run the project locally.
Ensure you have the following installed:
- Node.js
- Yarn (package manager)
- MongoDB (local or cloud-based)
-
Clone the repository:
git clone https://github.com/disalad/next-ecommerce.git cd next-ecommerce -
Install dependencies:
yarn install
-
Create a
.env.localfile in the root directory and configure your environment variables:NEXTAUTH_SECRET=your_secret MONGODB_URI=your_mongodb_connection_string MONGODB_DB=your_mongodb_database_name SALT_ROUNDS=Number of rounds for password hashing (e.g., 10)
-
Start the development server:
yarn dev
- User Authentication โ Secure login and registration with NextAuth
- Password Hashing โ User passwords are securely hashed using bcrypt, with configurable salt rounds
- Responsive UI โ Styled with Tailwind CSS for a seamless user experience
- Infinite Scroll โ Load products dynamically as the user scrolls
- Product Carousels โ Interactive sliders powered by SwiperJS
- Shopping Cart โ Add, remove, and manage products in the cart
- MongoDB Integration โ Store and retrieve data using Mongoose ORM
Project Link: https://github.com/disalad/next-ecommerce
