From 9c54ec4dc63ce490161d48b549095e2dca08cb99 Mon Sep 17 00:00:00 2001
From: MadalapureVaishnavi <madalapurevaishnavi@gmail.com>
Date: Mon, 24 Jun 2024 20:51:46 +0530
Subject: [PATCH] added image in title

---
 client/dist/vite.svg            | 13 ++++++++++++-
 client/public/vite.svg          | 13 ++++++++++++-
 server/dbConfig/dbConnection.js | 18 ++++++++++++++----
 server/package-lock.json        |  2 +-
 server/package.json             |  2 +-
 5 files changed, 40 insertions(+), 8 deletions(-)

diff --git a/client/dist/vite.svg b/client/dist/vite.svg
index e7b8dfb..e01dbcf 100644
--- a/client/dist/vite.svg
+++ b/client/dist/vite.svg
@@ -1 +1,12 @@
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="246" height="67">
+<path d="M0 0 C81.18 0 162.36 0 246 0 C246 22.11 246 44.22 246 67 C164.82 67 83.64 67 0 67 C0 44.89 0 22.78 0 0 Z " fill="#F6FCFC" transform="translate(0,0)"/>
+<path d="M0 0 C1.5675 -0.061875 3.135 -0.12375 4.75 -0.1875 C6.07257813 -0.23970703 6.07257813 -0.23970703 7.421875 -0.29296875 C10.53970712 0.06133035 11.8143256 0.76487595 14 3 C14.6796875 5.12109375 14.6796875 5.12109375 14.875 7.4375 C14.95492187 8.19933594 15.03484375 8.96117187 15.1171875 9.74609375 C14.9793151 12.39783957 14.49785828 13.80903338 13 16 C9 18 9 18 0 18 C0 12.06 0 6.12 0 0 Z " fill="#FB923C" transform="translate(131,19)"/>
+<path d="M0 0 C3.375 0.875 3.375 0.875 5.375 2.875 C5.92739643 9.83519496 5.92739643 9.83519496 4.3125 12.875 C1.20632725 14.47818593 -1.20490979 14.30251128 -4.625 13.875 C-7.25041413 11.67303976 -7.5695448 10.25526421 -8.0625 6.875 C-7.625 3.875 -7.625 3.875 -6.0625 1.4375 C-3.625 -0.125 -3.625 -0.125 0 0 Z " fill="#FB923C" transform="translate(155.625,23.125)"/>
+<path d="M0 0 C1.32 0.33 2.64 0.66 4 1 C5.67422986 0.70700977 7.34178227 0.37309899 9 0 C12.28453 0 14.84698314 0.23304995 18 1 C19 2 19 2 19.09765625 4.72265625 C19.08605469 5.82480469 19.07445313 6.92695313 19.0625 8.0625 C19.05347656 9.16722656 19.04445313 10.27195312 19.03515625 11.41015625 C19.02355469 12.26480469 19.01195313 13.11945312 19 14 C18.01 14 17.02 14 16 14 C15.67 11.03 15.34 8.06 15 5 C14.01 4.67 13.02 4.34 12 4 C11.67 7.3 11.34 10.6 11 14 C10.01 14 9.02 14 8 14 C7.67 11.03 7.34 8.06 7 5 C6.01 5 5.02 5 4 5 C3.67 7.97 3.34 10.94 3 14 C2.01 14 1.02 14 0 14 C0 9.38 0 4.76 0 0 Z " fill="#EA580C" transform="translate(108,23)"/>
+<path d="M0 0 C0.99 0 1.98 0 3 0 C3.33 2.31 3.66 4.62 4 7 C4.37511719 6.4946875 4.75023438 5.989375 5.13671875 5.46875 C9.36878216 0.09605489 9.36878216 0.09605489 12.875 -0.4375 C13.57625 -0.293125 14.2775 -0.14875 15 0 C14.01 0.495 14.01 0.495 13 1 C11.94978897 2.84971696 11.94978897 2.84971696 11 5 C10.34 6.32 9.68 7.64 9 9 C10.98 11.97 12.96 14.94 15 18 C13.35 18 11.7 18 10 18 C7.6875 15 7.6875 15 6 12 C5.01 12.495 5.01 12.495 4 13 C3.34444881 15.52733235 3.34444881 15.52733235 3 18 C2.01 18 1.02 18 0 18 C0 12.06 0 6.12 0 0 Z " fill="#EA580C" transform="translate(61,19)"/>
+<path d="M0 0 C1 1 1 1 1.09765625 3.72265625 C1.08605469 4.82480469 1.07445313 5.92695313 1.0625 7.0625 C1.05347656 8.16722656 1.04445313 9.27195312 1.03515625 10.41015625 C1.02355469 11.26480469 1.01195313 12.11945312 1 13 C-0.62490954 13.02698189 -2.24994633 13.04638757 -3.875 13.0625 C-5.23238281 13.07990234 -5.23238281 13.07990234 -6.6171875 13.09765625 C-9 13 -9 13 -11 12 C-11.1875 9.625 -11.1875 9.625 -11 7 C-7.77208445 4.8480563 -6.71599191 4.79913557 -3 5 C-3 4.01 -3 3.02 -3 2 C-4.175625 2.5259375 -4.175625 2.5259375 -5.375 3.0625 C-6.674375 3.5265625 -6.674375 3.5265625 -8 4 C-8.66 3.67 -9.32 3.34 -10 3 C-9.67 2.01 -9.34 1.02 -9 0 C-5.90842747 -1.54578627 -3.31526981 -0.60277633 0 0 Z " fill="#EB6722" transform="translate(103,24)"/>
+<path d="M0 0 C1 1 1 1 1.09765625 3.72265625 C1.08605469 4.82480469 1.07445313 5.92695313 1.0625 7.0625 C1.05347656 8.16722656 1.04445313 9.27195312 1.03515625 10.41015625 C1.02355469 11.26480469 1.01195313 12.11945312 1 13 C-0.62490954 13.02698189 -2.24994633 13.04638757 -3.875 13.0625 C-5.23238281 13.07990234 -5.23238281 13.07990234 -6.6171875 13.09765625 C-9 13 -9 13 -11 12 C-11.1875 9.625 -11.1875 9.625 -11 7 C-7.77208445 4.8480563 -6.71599191 4.79913557 -3 5 C-3 4.01 -3 3.02 -3 2 C-4.175625 2.5259375 -4.175625 2.5259375 -5.375 3.0625 C-6.674375 3.5265625 -6.674375 3.5265625 -8 4 C-8.66 3.67 -9.32 3.34 -10 3 C-9.67 2.01 -9.34 1.02 -9 0 C-5.90842747 -1.54578627 -3.31526981 -0.60277633 0 0 Z " fill="#EB6722" transform="translate(88,24)"/>
+<path d="M0 0 C2.3431213 0.25561323 4.67843403 0.59270772 7 1 C8.39935013 3.79870027 8.25265405 5.90498792 8 9 C6.8125 10.875 6.8125 10.875 5 12 C3.35 12 1.7 12 0 12 C0 8.04 0 4.08 0 0 Z " fill="#F7FDFD" transform="translate(134,22)"/>
+<path d="M0 0 C2.0625 0.4375 2.0625 0.4375 4 1 C4.93423645 4.01031744 5.04449911 4.86650268 4 8 C2.35 7.67 0.7 7.34 -1 7 C-1.04254356 5.00045254 -1.04080783 2.99958364 -1 1 C-0.67 0.67 -0.34 0.34 0 0 Z " fill="#F7FDFD" transform="translate(153,26)"/>
+</svg>
diff --git a/client/public/vite.svg b/client/public/vite.svg
index e7b8dfb..e01dbcf 100644
--- a/client/public/vite.svg
+++ b/client/public/vite.svg
@@ -1 +1,12 @@
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="246" height="67">
+<path d="M0 0 C81.18 0 162.36 0 246 0 C246 22.11 246 44.22 246 67 C164.82 67 83.64 67 0 67 C0 44.89 0 22.78 0 0 Z " fill="#F6FCFC" transform="translate(0,0)"/>
+<path d="M0 0 C1.5675 -0.061875 3.135 -0.12375 4.75 -0.1875 C6.07257813 -0.23970703 6.07257813 -0.23970703 7.421875 -0.29296875 C10.53970712 0.06133035 11.8143256 0.76487595 14 3 C14.6796875 5.12109375 14.6796875 5.12109375 14.875 7.4375 C14.95492187 8.19933594 15.03484375 8.96117187 15.1171875 9.74609375 C14.9793151 12.39783957 14.49785828 13.80903338 13 16 C9 18 9 18 0 18 C0 12.06 0 6.12 0 0 Z " fill="#FB923C" transform="translate(131,19)"/>
+<path d="M0 0 C3.375 0.875 3.375 0.875 5.375 2.875 C5.92739643 9.83519496 5.92739643 9.83519496 4.3125 12.875 C1.20632725 14.47818593 -1.20490979 14.30251128 -4.625 13.875 C-7.25041413 11.67303976 -7.5695448 10.25526421 -8.0625 6.875 C-7.625 3.875 -7.625 3.875 -6.0625 1.4375 C-3.625 -0.125 -3.625 -0.125 0 0 Z " fill="#FB923C" transform="translate(155.625,23.125)"/>
+<path d="M0 0 C1.32 0.33 2.64 0.66 4 1 C5.67422986 0.70700977 7.34178227 0.37309899 9 0 C12.28453 0 14.84698314 0.23304995 18 1 C19 2 19 2 19.09765625 4.72265625 C19.08605469 5.82480469 19.07445313 6.92695313 19.0625 8.0625 C19.05347656 9.16722656 19.04445313 10.27195312 19.03515625 11.41015625 C19.02355469 12.26480469 19.01195313 13.11945312 19 14 C18.01 14 17.02 14 16 14 C15.67 11.03 15.34 8.06 15 5 C14.01 4.67 13.02 4.34 12 4 C11.67 7.3 11.34 10.6 11 14 C10.01 14 9.02 14 8 14 C7.67 11.03 7.34 8.06 7 5 C6.01 5 5.02 5 4 5 C3.67 7.97 3.34 10.94 3 14 C2.01 14 1.02 14 0 14 C0 9.38 0 4.76 0 0 Z " fill="#EA580C" transform="translate(108,23)"/>
+<path d="M0 0 C0.99 0 1.98 0 3 0 C3.33 2.31 3.66 4.62 4 7 C4.37511719 6.4946875 4.75023438 5.989375 5.13671875 5.46875 C9.36878216 0.09605489 9.36878216 0.09605489 12.875 -0.4375 C13.57625 -0.293125 14.2775 -0.14875 15 0 C14.01 0.495 14.01 0.495 13 1 C11.94978897 2.84971696 11.94978897 2.84971696 11 5 C10.34 6.32 9.68 7.64 9 9 C10.98 11.97 12.96 14.94 15 18 C13.35 18 11.7 18 10 18 C7.6875 15 7.6875 15 6 12 C5.01 12.495 5.01 12.495 4 13 C3.34444881 15.52733235 3.34444881 15.52733235 3 18 C2.01 18 1.02 18 0 18 C0 12.06 0 6.12 0 0 Z " fill="#EA580C" transform="translate(61,19)"/>
+<path d="M0 0 C1 1 1 1 1.09765625 3.72265625 C1.08605469 4.82480469 1.07445313 5.92695313 1.0625 7.0625 C1.05347656 8.16722656 1.04445313 9.27195312 1.03515625 10.41015625 C1.02355469 11.26480469 1.01195313 12.11945312 1 13 C-0.62490954 13.02698189 -2.24994633 13.04638757 -3.875 13.0625 C-5.23238281 13.07990234 -5.23238281 13.07990234 -6.6171875 13.09765625 C-9 13 -9 13 -11 12 C-11.1875 9.625 -11.1875 9.625 -11 7 C-7.77208445 4.8480563 -6.71599191 4.79913557 -3 5 C-3 4.01 -3 3.02 -3 2 C-4.175625 2.5259375 -4.175625 2.5259375 -5.375 3.0625 C-6.674375 3.5265625 -6.674375 3.5265625 -8 4 C-8.66 3.67 -9.32 3.34 -10 3 C-9.67 2.01 -9.34 1.02 -9 0 C-5.90842747 -1.54578627 -3.31526981 -0.60277633 0 0 Z " fill="#EB6722" transform="translate(103,24)"/>
+<path d="M0 0 C1 1 1 1 1.09765625 3.72265625 C1.08605469 4.82480469 1.07445313 5.92695313 1.0625 7.0625 C1.05347656 8.16722656 1.04445313 9.27195312 1.03515625 10.41015625 C1.02355469 11.26480469 1.01195313 12.11945312 1 13 C-0.62490954 13.02698189 -2.24994633 13.04638757 -3.875 13.0625 C-5.23238281 13.07990234 -5.23238281 13.07990234 -6.6171875 13.09765625 C-9 13 -9 13 -11 12 C-11.1875 9.625 -11.1875 9.625 -11 7 C-7.77208445 4.8480563 -6.71599191 4.79913557 -3 5 C-3 4.01 -3 3.02 -3 2 C-4.175625 2.5259375 -4.175625 2.5259375 -5.375 3.0625 C-6.674375 3.5265625 -6.674375 3.5265625 -8 4 C-8.66 3.67 -9.32 3.34 -10 3 C-9.67 2.01 -9.34 1.02 -9 0 C-5.90842747 -1.54578627 -3.31526981 -0.60277633 0 0 Z " fill="#EB6722" transform="translate(88,24)"/>
+<path d="M0 0 C2.3431213 0.25561323 4.67843403 0.59270772 7 1 C8.39935013 3.79870027 8.25265405 5.90498792 8 9 C6.8125 10.875 6.8125 10.875 5 12 C3.35 12 1.7 12 0 12 C0 8.04 0 4.08 0 0 Z " fill="#F7FDFD" transform="translate(134,22)"/>
+<path d="M0 0 C2.0625 0.4375 2.0625 0.4375 4 1 C4.93423645 4.01031744 5.04449911 4.86650268 4 8 C2.35 7.67 0.7 7.34 -1 7 C-1.04254356 5.00045254 -1.04080783 2.99958364 -1 1 C-0.67 0.67 -0.34 0.34 0 0 Z " fill="#F7FDFD" transform="translate(153,26)"/>
+</svg>
diff --git a/server/dbConfig/dbConnection.js b/server/dbConfig/dbConnection.js
index 92148ec..db89174 100644
--- a/server/dbConfig/dbConnection.js
+++ b/server/dbConfig/dbConnection.js
@@ -1,14 +1,24 @@
 import mongoose from "mongoose";
+import dotenv from "dotenv";
+
+dotenv.config(); // Load environment variables from .env file
 
 const dbConnection = async () => {
     try {
-        const dbConnection = await mongoose.connect(process.env.MONGODB_URL);
-        console.log("Database connected successfully");
+        const dbUri = process.env.MONGO_URL;
+        if (!dbUri) {
+            throw new Error("MONGO_URL environment variable is not set.");
+        }
 
+        await mongoose.connect(dbUri, {
+            useNewUrlParser: true,
+            useUnifiedTopology: true,
+        });
 
+        console.log("Database connected successfully");
     } catch (error) {
-        console.log('MongoConnection Failed !!' + error );
+        console.log('MongoConnection Failed !! ' + error);
     }
 }
 
-export default dbConnection;
\ No newline at end of file
+export default dbConnection;
diff --git a/server/package-lock.json b/server/package-lock.json
index 61759b0..d5424fc 100644
--- a/server/package-lock.json
+++ b/server/package-lock.json
@@ -12,7 +12,7 @@
         "bcryptjs": "^2.4.3",
         "body-parser": "^1.20.2",
         "cors": "^2.8.5",
-        "dotenv": "^16.4.1",
+        "dotenv": "^16.4.5",
         "express": "^4.18.2",
         "express-async-errors": "^3.1.1",
         "express-mongo-sanitize": "^2.2.0",
diff --git a/server/package.json b/server/package.json
index 74df09c..e70339d 100644
--- a/server/package.json
+++ b/server/package.json
@@ -15,7 +15,7 @@
     "bcryptjs": "^2.4.3",
     "body-parser": "^1.20.2",
     "cors": "^2.8.5",
-    "dotenv": "^16.4.1",
+    "dotenv": "^16.4.5",
     "express": "^4.18.2",
     "express-async-errors": "^3.1.1",
     "express-mongo-sanitize": "^2.2.0",