diff --git a/README.md b/README.md
index 007afdc..69fba0f 100644
--- a/README.md
+++ b/README.md
@@ -62,30 +62,35 @@ Welcome to Foodies, your go-to college dining companion! Designed for seamless c
## To get started with contributing to the FoodiesWeb project, follow these steps:
-1. **Navigate to the Project Directory:**
+1. **Fork and clone the repository**
+2. **Navigate to the Project Directory:**
```bash
- cd path/to/FoodiesWeb
+ cd FoodiesWeb
```
-2. **Split Terminal for Backend Setup**
+3. **Split Terminal for Backend Setup**
-3. **Navigate to the Server Directory:**
+4. **Navigate to the Server Directory:**
```bash
- cd path/to/FoodiesWeb/server
+ cd server
```
-4. **Install Dependencies (in both terminals):**
+5. **Install Dependencies (in both terminals):**
```bash
npm install
```
-5. **Start the Backend Server (in the terminal within the /server directory):**
+
+ ### **ENV Variables**
+ Setup MongoDB local host instance and port in env file in your local device. Default port is 4000
+ Sample uri is given below.
+ ```
+ PORT=3000
+ DATABASE_URL="http://localhost:21713/foods"
+ ```
+
+6. **Start the Backend Server (in the terminal within the /server directory):**
In the terminal where you navigated to the /server directory, run the following command to start the backend server:
```bash
nodemon server.js
```
-6. **Navigate to the src (with Backend Running):**
- In the other terminal, run the following command to navigate to the src folder (frontend):
- ```bash
- cd src
- ```
7. **Start the React App (with Backend Running):**
After navigating run the following command to start the React app with the backend server running successfully:
```bash
diff --git a/package.json b/package.json
index e33361c..8718817 100644
--- a/package.json
+++ b/package.json
@@ -8,6 +8,7 @@
"@testing-library/user-event": "^13.5.0",
"aos": "^2.3.4",
"axios": "^1.5.1",
+ "dotenv": "^16.4.5",
"framer-motion": "^11.1.9",
"react": "^18.2.0",
"react-dom": "^18.2.0",
diff --git a/server/package.json b/server/package.json
index c4dd360..38bb8fe 100644
--- a/server/package.json
+++ b/server/package.json
@@ -16,7 +16,7 @@
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"datauri": "^4.1.0",
- "dotenv": "^16.3.1",
+ "dotenv": "^16.4.5",
"express": "^4.18.2",
"express-async-handler": "^1.2.0",
"faker": "^5.5.3",
diff --git a/src/pages/Signup.jsx b/src/pages/Signup.jsx
index e6a6005..ac1f61b 100644
--- a/src/pages/Signup.jsx
+++ b/src/pages/Signup.jsx
@@ -94,6 +94,7 @@ function Signup() {
navigate("/home");
})
.catch((error) => {
+ console.log(error)
toast.error("Failed To create account");
});
} else {