text: require('dotenv').config();
  // *****************************************************************************
  // Server.js - This file is the initial starting point for the Node/Express server.
  //
  // ******************************************************************************
  // *** Dependencies
  // =============================================================
  var express = require("express");
  var exphbs = require("express-handlebars");
  var session = require("express-session");
  var passport = require("./config/passport");
  var compression = require('compression');
  
  // Sets up the Express App
  // =============================================================
  var app = express();
  app.use(compression());
  var PORT = process.env.PORT || 8080;
  app.use(express.static("public"));
  // Set Handlebars as the default templating engine.
  app.engine("handlebars", exphbs({ defaultLayout: "main" }));
  app.set("view engine", "handlebars");
  
  // Requiring our models for syncing
  var db = require("./models");
  
  // Sets up the Express app to handle data parsing
  app.use(express.urlencoded({ extended: true }));
  app.use(express.json());
  
  // Static directory
  app.use(express.static("public"));
  // We need to use sessions to keep track of our user's login status
  app.use(session({ secret: "keyboard cat", resave: true, saveUninitialized: true }));
  app.use(passport.initialize());
  app.use(passport.session());
  
  // Routes
  // =============================================================
  require("./public/dist/api-routes")(app);
  require("./public/dist/html-routes")(app);
  
  // Syncing our sequelize models and then starting our Express app
  // =============================================================
  // db.sequelize.sync({ force: true }).then(function() {
  db.sequelize.sync().then(function() {
    app.listen(PORT, function() {
      console.log("App listening on PORT " + PORT);
    });
  });
  
  