My-Shop is a simple e-commerce application built with Next.js. This project demonstrates a shopping cart functionality with a dynamic product list and an interactive cart page.
- Product Listing: Display a list of available products.
- Shopping Cart: Add and remove items from the cart.
- Dynamic Routing: Navigate between pages for products and the cart.
- Responsive Design: Mobile and desktop-friendly layout.
Before you begin, ensure you have the following installed on your system:
-
Clone the repository:
git clone https://github.com/your-username/my-shop.git
-
Navigate to the project directory:
cd my-shop -
Install the dependencies:
npm install
To start the development server, run:
npm run dev- The application will be available at http://localhost:3000.
To build the application for production, run:
npm run buildThis will generate an optimized build in the .next folder.
To start the production server, after building, run:
npm startThe production server will be available at http://localhost:3000.
my-shop/
├── app/
│ ├── cart/
│ │ └── page.js # Cart page
│ ├── context/
│ │ └── CartContext.js # Cart context for state management
│ ├── globals.css # Global styles
│ ├── layout.js # Root layout
│ └── page.js # Home page
├── public/
│ ├── apple.png # Product images
│ ├── banana.png
│ └── grape.png
├── .gitignore # Git ignored files
├── package.json # Project metadata and dependencies
├── README.md # Project documentation
└── next.config.js # Next.js configuration
- Next.js: React framework for server-side rendering and static site generation.
- React: Frontend library for building user interfaces.
- CSS: Styling for the application.
This project is licensed under the MIT License. See the LICENSE file for details.
- Next.js Documentation
- Vercel for hosting Next.js applications

