Welcome to our E-Commerce project built using the MERN (MongoDB, Express, React, Node.js) stack! This document provides an overview of the project's structure, features, and how to set it up for development and testing.
This project is an E-Commerce web application that allows users to browse, search, view product details, add products to their cart, and proceed to checkout. The application includes both the frontend and backend components, with the frontend being built using React and the backend using Node.js and Express.
- User registration and authentication
- Product browsing and searching
- Product categorization and filtering
- Product details and reviews
- Shopping cart functionality
- User profile management
- Order history and tracking
- Admin panel for managing products and orders
Before you begin, ensure you have the following installed:
- Node.js and npm (Node Package Manager)
- MongoDB (make sure it's up and running)
- Clone this repository:
git clone https://github.com/your-username/your-e-commerce-project.git
- Navigate to the project directory:
cd your-e-commerce-project
- Install server dependencies:
npm install
- Navigate to the client directory:
cd client
- Install client dependencies:
npm install
-
Backend: Create a
.env
file in the root directory and configure your MongoDB connection string, JWT secret, and other environment variables. Example.env
: -
Frontend: In the
client/src/config.js
file, update the API base URL to match your backend server.
- Start the server: In the project root directory, run
npm start
. - Start the client: In the
client
directory, runnpm start
. - Access the application in your browser at
http://localhost:3000
.
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to submit a pull request.
This project is licensed under the MIT License.
Happy coding!