aboutsummaryrefslogtreecommitdiffstats
path: root/server/config
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-07-25 11:07:20 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-07-25 11:07:20 +0530
commit1f853be5b9c07519cceeea9b7a5cbeee06756401 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /server/config
parent90b1b7872547949b3b2c42bc7cc47457a1a2ec70 (diff)
downloadadmin-panel-1f853be5b9c07519cceeea9b7a5cbeee06756401.tar.gz
admin-panel-1f853be5b9c07519cceeea9b7a5cbeee06756401.tar.bz2
admin-panel-1f853be5b9c07519cceeea9b7a5cbeee06756401.zip
new project
Diffstat (limited to 'server/config')
-rw-r--r--server/config/db.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/server/config/db.js b/server/config/db.js
deleted file mode 100644
index 9ae3c6b..0000000
--- a/server/config/db.js
+++ /dev/null
@@ -1,16 +0,0 @@
-const mongoose = require('mongoose');
-require('dotenv').config();
-
-const connectDB = async () => {
- try {
- await mongoose.connect(process.env.MONGO_URI, {
- useNewUrlParser: true,
- useUnifiedTopology: true,
- });
- console.log('MongoDB connected...');
- } catch (err) {
- console.error(err.message);
- process.exit(1);
- }
-};
-module.exports = connectDB;