A comprehensive MERN stack application that simulates features of a modern e-commerce website.
- Sign up / Login
- Create Product
- Edit Product Details
- Delete Products
- Add products to favourites
- Add products to the Cart
-
Clone the project. Open your terminal and use the following command:
git clone https://github.com/tireddev24/product-store
-
Open the "product-store" folder in VS Code (or your preferred code editor)
-
Create a MongoDB database and get the connection string - How to Create a MongoDB Database
-
In the backend folder, create a file named ".env"
- MONGO_URI = {{your_MongoDB_connection_string}} - PORT = {{your_preferred_port}} - JWT_SECRET= {{your_jwt_secret}} -
Open a terminal in the directory where the project folder is located and navigate to the backend directory. Then run the command(s):
npm install npm run dev
-
Open a new terminal in the same directory as the above project and navigate to the frontend directory. Then run the command(s):
npm install npm run dev
-
View the page in the browser with the link in the terminal. It should look like this:
npm installinstalls the dependenciesnpm run devstarts the server

