text: require('dotenv').config();
  
  //Set up mongoose connection
  const mongoose = require('mongoose');
  
  mongoose.connect(process.env.MONGODB_URI,{
      useNewUrlParser: true,
      useCreateIndex: true,
      useUnifiedTopology: true
  }).then(() => console.log('DB Connected'));
  
  module.exports = mongoose;