This is a sample Next.js project for building an e-commerce website. It includes features such as displaying products, adding them to a shopping cart, and checking out.
A live demo of the project can be accessed here.
The products are loaded from a Node.js Express backend. You can find the backend code in the node-express-backend repository.
- Next.js
- React
- Node.js
- Express
- Tailwind CSS
- Displaying products with details such as name, price, and description.
- Adding products to a shopping cart.
- Updating the quantity of items in the cart.
- Calculating the subtotal and total price of items in the cart.
- Checking out and completing the purchase.
- Node.js (version X.X.X)
- npm (version X.X.X)
-
Clone the repository:
git clone https://github.com/smmk123/sample-store-njs
-
Change into the project directory:
cd nextjs-ecommerce-project
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and visit
http://localhost:3000
to see the app.
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
This project is licensed under the MIT License.
Feel free to modify and customize the README.md file according to your specific project details and preferences.
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).