text: /* Load ENV first */
  require('dotenv').config();
  const express = require('express');
  const exphbs = require("express-handlebars");
  const connection = require("./config/connection");
  const router = require('./controllers/burgersController.js');
  
  const app = express();
  const PORT = process.env.PORT || 3000;
  
  // Use the express.static middleware to serve static content for the app from the "public" directory in the application directory.
  app.use(express.static("public"));
  
  // Sets up the Express app to handle data parsing
  app.use(express.urlencoded({ extended: true }));
  app.use(express.json());
  
  app.use('/', router);
  
  app.engine("handlebars", exphbs({ defaultLayout: "main" }));
  app.set("view engine", "handlebars");
  
  app.listen(PORT, function() {
      // Log (server-side) when our server has started
      console.log("Server listening on: http://localhost:" + PORT);
    });
  