text: // dependencies
  
  const path = require('path');
  const express = require('express');
  const routes = require('./controllers');
  const helpers = require('./utils/helpers');
  const sequelize = require('./config/connection');
  const exphbs = require('express-handlebars');
  const hbs = exphbs.create({ helpers });
  const session = require('express-session');
  const cool = require('cool-ascii-faces');
  const SequelizeStore = require('connect-session-sequelize')(session.Store);
  
  const sess = {
     secret: 'A Secret',
     cookie: {},
     resave: false,
     saveUninitialized: true,
     store: new SequelizeStore({
        db: sequelize
     })
  };
  
  const app = express()
  .get('/cool', (req, res) => res.send(cool()));
  const PORT = process.env.PORT || 3006;
  
  app.use(express.json());
  app.use(express.urlencoded({ extended: true }));
  app.use(express.static(path.join(__dirname, 'public')));
  app.use(session(sess));
  
  // turn on routes
  app.use(routes);
  
  app.engine('handlebars', hbs.engine);
  app.set('view engine', 'handlebars');
  
  // turn on connection to db and server
  sequelize.sync({ force: false }).then(() => {
     app.listen(PORT, () => console.log(`Now listening on port ${PORT}!`));
  });