text: var express = require("express");
  var http = require("http");
  require('dotenv').config()
  
  // Setting up port and requiring models for syncing
  var PORT = process.env.PORT || 8080;
  
  // Creating express app and configuring middleware needed for authentication
  var app = express();
  app.use(express.urlencoded({ extended: true }));
  app.use(express.json());
  app.use(express.static("public"));
  
  // Set Handlebars.
  var exphbs = require("express-handlebars");
  app.engine("handlebars", exphbs({ defaultLayout: "main" }));
  app.set("view engine", "handlebars");
  
  
  // Requiring our routes
  require("./routes/routes.js")(app);
  
  var server = http.createServer(app);
  
  //Start our server
  server.listen(PORT, function() {
      console.log(
        "==> 🌎  Listening on port %s. Visit http://localhost:%s/ in your browser.",
        PORT,
        PORT
      );
  });
  
  