This is a full-stack e-commerce application built using the MERN (MongoDB, Express.js, React, Node.js) stack.
-
Clone the repository:
git clone https://github.com/Bushra-naeem/mern-ecommerce.git
-
Navigate to the Project Directory:
cd mern-ecommerce -
Install dependencies for both frontend and backend:
For Frontend
cd frontend
npm installFor Backend
cd backend
npm install- Create a .env file in the root directory and add the following environment variables:
NODE_ENV=development
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
PAYPAL_CLIENT_ID=your_paypal_client_id-
Run the application:
npm run dev
This will start both the frontend and backend servers concurrently.
- Email: [email protected]
- LinkedIn: Bushra Naeem