- Introduction
- Features
- Technologies
- Installation
- Usage
- Project Structure
- Contributing
- License
- Contact
This repository contains an Ecommerce website built using the MERN stack (MongoDB, Express, React, and Node.js). The application allows users to browse products, add them to the cart, and purchase them. The application is hosted live at ecommerce-steel-eight.vercel.app.
- User authentication and authorization
- Product browsing and searching
- Shopping cart functionality
- Order management
- Responsive design
- MongoDB
- Node.js
- Express.js
- React
- Vercel (for hosting)
To set up this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/Harshbansal8705/ECommerce-Website.git cd ECommerce-Website/backend
-
Install dependencies:
npm install
-
Create a
.env
file and add the necessary environment variables:MONGODB_URI = <your-mongodb-uri> JWT_SECRET = <your-jwt-secret>
-
Populate the MongoDB database with dummy product data:
node processor/dbgenerate.js
-
Start the backend server:
npm start
-
Navigate to the frontend directory:
cd ../frontend
-
Create a
.env
file and add the necessary environment variables:REACT_APP_BACKEND_URL = <your-backend-server-url>
-
Install dependencies:
npm install
-
Start the frontend development server:
npm start
-
Open http://localhost:3000 in your browser to use the application locally.
ECommerce-Website/
├── backend/
│ ├── api/
│ ├── controller/
│ ├── middlewares/
│ ├── model/
│ ├── processor/
│ ├── package-lock.json
│ ├── package.json
│ └── vercel.json
├── frontend/
│ ├── public/
│ ├── src/
│ ├── package-lock.json
│ ├── package.json
│ └── tailwind.config.js
├── .gitignore
└── README.md
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for more details.