text: require('./models/db');
  const express = require('express');
  const employeeController = require("./controllers/employeeController");
  const path = require('path');
  const exphbs = require('express-handlebars');
  const bodyparser = require('body-parser');
  
  var app = express();
  
  app.use(bodyparser.urlencoded({
      extended: true
  }));
  app.use(bodyparser.json());
  
  app.set("views", path.join(__dirname, "views"));
  
  app.engine('hbs', exphbs({
      extname: 'hbs',
      defaultLayout: 'mainLayout',
      layoutsDir: __dirname + '/views/layouts/'
  }));
  app.set("view engine", "hbs");
  
  
  const PORT = process.env.PORT || 3000;
  app.listen(PORT, () => console.log(`Express server started at port:${PORT}`));
  
  app.use('/employee', employeeController);