Skip to content

Commit

Permalink
database connection
Browse files Browse the repository at this point in the history
  • Loading branch information
madhukar666 committed Sep 12, 2024
1 parent 2fff874 commit 1c29031
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions CarPooling/backend/connection/database.connection.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
require("dotenv").config();
const MONGO_URI = process.env.MONGO_URI | undefined;
const MONGO_URI = process.env.MONGO_URI;

const mongoose = require("mongoose");
const connection = mongoose.connect(
MONGO_URI);
const connection = mongoose.connect(MONGO_URI);
connection
.then(() => {
console.log("connection with carpool database is successful");
Expand Down
2 changes: 1 addition & 1 deletion CarPooling/frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/node_modules
/.pnp
.pnp.js

/.env
# testing
/coverage

Expand Down

0 comments on commit 1c29031

Please sign in to comment.