text: // Import Libraries
  const path = require('path');
  const express = require('express');
  const compression = require('compression');
  const favicon = require('serve-favicon');
  const cookieParser = require('cookie-parser');
  const bodyParser = require('body-parser');
  const mongoose = require('mongoose');
  const expressHandlebars = require('express-handlebars');
  
  const port = process.env.PORT || process.env.NODE_PORT || 3000;
  const dbURL = process.env.MONGODB_URI || 'mongodb://localhost/DomoMaker';
  
  const mongooseOptions = {
    useNewUrlParser: true,
    useUnifiedTopology: true,
    useCreateIndex: true,
  };
  
  mongoose.connect(dbURL, mongooseOptions, (err) => {
    if (err) {
      console.log('Could not connect to database');
      throw err;
    }
  });
  
  const router = require('./router.js');
  
  const app = express();
  app.use('/assets',
    express.static(path.resolve(`${__dirname}/../hosted/`)));
  app.use(favicon(`${__dirname}/../hosted/img/favicon.png`));
  app.use(compression());
  app.use(bodyParser.urlencoded({ extended: true }));
  app.engine('handlebars',
    expressHandlebars({ defaultLayout: 'main' }));
  app.set('view engine', 'handlebars');
  app.set('views', `${__dirname}/../views`);
  app.use(cookieParser());
  
  router(app);
  
  app.listen(port, (err) => {
    if (err) {
      throw err;
    }
    console.log(`Listening on port ${port}`);
  });
  