text: 'use strict';
  
  require('dotenv').config();
  const MongoClient = require('mongodb').MongoClient;
  const mongoose = require('mongoose');
  const server = require('./src/server.js');
  const PORT = process.env.PORT || 3000;
  
  const MONGODB_URL = process.env.MONGODB_URL;
  const options = { useNewUrlParser: true, useUnifiedTopology: true };
  
  mongoose.connect(MONGODB_URL, options)
    .then(() => {
      server.start(PORT);
    })
    .catch(err => console.error(err));
  