송민석

Make index.js and Test DB connection

Showing 1 changed file with 9 additions and 0 deletions
const config =require('./config')
const mongoose = require("mongoose");
const connect = mongoose
.connect(config.url, {
useNewUrlParser: true,
useUnifiedTopology: true,
})
.then(() => console.log("MongoDB Connected ..."))
.catch((err) => console.log(err));
\ No newline at end of file