text: const express = require('express');
  
  const db = require('./models');
  
  const app = express();
  const PORT = process.env.PORT || 8080;
  
  app.use(express.urlencoded({ extended: true }));
  app.use(express.json());
  app.use(express.static('./public/'));
  
  const exphbs = require('express-handlebars');
  
  app.engine('handlebars', exphbs({ defaultLayout: 'main' }));
  app.set('view engine', 'handlebars');
  
  // routes
  const routes = require('./controllers/html-controller');
  app.use(routes);
  
  
  db.sequelize.sync({force: false}).then(function() {
    app.listen(PORT, function() {
      console.log('App listening on PORT: ' + PORT);
    });
  });