text: const express = require('express');
  const sequelize = require('./config/connection');
  const PORT = process.env.PORT || 3001;
  const app = express();
  const path = require('path');
  const session = require('express-session');
  const exphbs = require('express-handlebars');
  const SequelizeStore = require('connect-session-sequelize')(session.Store);
  const helpers = require('./utils/helpers');
  
  const sess = {
      secret: 'Super secret secret',
      cookie: {},
      resave: false,
      saveUninitialized: true,
      store: new SequelizeStore({
          db: sequelize
      })
  };
  app.use(session(sess));
  const hbs = exphbs.create({ helpers });
  app.engine('handlebars', hbs.engine);
  app.set('view engine', 'handlebars');
  app.use(express.json());
  app.use(express.urlencoded({ extended: true }));
  app.use(express.static(path.join(__dirname, 'public')));
  app.use(require('./controllers/'));
  
  sequelize.sync({ force: false }).then(() => {
      app.listen(PORT, () => console.log('Now listening'));
  });