text: // *****************************************************************************
  // Server.js - This file is the initial starting point for the Node/Express server.
  //
  // ******************************************************************************
  // *** Dependencies
  // =============================================================
  const express = require("express");
  const path = require("path");
  const session = require("express-session");
  const SequelizeStore = require("connect-session-sequelize")(session.Store);
  require("dotenv").config();
  
  // Sets up the Express App
  // =============================================================
  const app = express();
  const PORT = process.env.PORT || 8080;
  
  // Requiring our models for syncing
  const db = require("./app/models");
  
  // Sets up the Express app to handle data parsing
  app.use(express.urlencoded({ extended: true }));
  app.use(express.json());
  
  app.use(session({
    // secret:process.env.SESSION_SECRET,
    secret:process.env.SESSION_SECRET,
    store: new SequelizeStore({
      db:db.sequelize
    }),
    resave:false,
    saveUninitialized: false,
    cookie: {
      maxAge:7200000
    }
  }))
  
  // Static directory
  app.use(express.static("app/public"));
  
  // Set Handlebars.
  const exphbs = require("express-handlebars");
  app.set("views", path.join(__dirname, "./app/views"))
  app.engine("handlebars", exphbs({ defaultLayout: "main" }));
  app.set("view engine", "handlebars");
  
  // Routes
  // =============================================================
  // Data routes
  const stagedApiRoutes = require("./app/controllers/stagedApiController");
  app.use(stagedApiRoutes);
  
  const usersApiRoutes = require("./app/controllers/usersApiController.js");
  app.use(usersApiRoutes);
  
  const quizuserApiRoutes = require("./app/controllers/quizusersApiController");
  app.use(quizuserApiRoutes);
  
  const quizApiRoutes = require("./app/controllers/quizzesApiController.js");
  app.use(quizApiRoutes);
  
  // HTML routes
  const htmlRoutes = require("./app/controllers/htmlController");
  app.use(htmlRoutes);
  
  // Syncing our sequelize models and then starting our Express app
  // =============================================================
  db.sequelize.sync({ force: false }).then(function() {
    app.listen(PORT, function() {
      console.log("App listening on PORT " + PORT);
    });
  }).catch(error => {
    console.log(error);
  })
  