Skip to content

RJSHIVA/My-First_E-commerce-Website

Repository files navigation

Ecommerce Website using MERn Stack

Welcome to My first Ecommerce website built with the MERn Stack (MongoDB, Express.js, React, Node.js).

Getting Started

Visit the deployed project at Ecommerce Website

Clone this repository to your local machine:

git clone https://github.com/your-username/mern-ecommerce.git

Suggestions and contributions are welcome! If you find any issues or have ideas for improvement, feel free to open an issue or create a pull request.

Running the Code

To run the code, follow these steps:

Install dependencies in both the root and client directories:

cd mern-ecommerce npm install

cd client npm install

Set your environment variables. Add a .env file in the server directory with the following content:

dotenv MONGO_URI=your-mongodb-connection-string Replace your-mongodb-connection-string with your actual MongoDB connection string.

Start the development server:

npm run dev

This will start both the React frontend and Express backend. Access the application at http:https://localhost:3000.

License This project is open-source and available under the MIT License. Feel free to use, modify, and distribute the code for your Ecommerce projects.

Happy coding!