text: const express = require('express');
  const morgan = require('morgan');
  const path = require('path');
  const engines = require('consolidate'); // Simple engine to render html from views folder
  
  const app = express();
  // Import a router
  const router = require('./routes/starWarsRoutes');
  // Let express access views folder
  app.use(express.static(path.join(__dirname, 'views')));
  // Set a basic engine to render an HTML file from views folder
  app.engine('html', engines.mustache);
  app.set('view engine', 'html');
  // Set morgan to dev mode
  app.use(morgan('dev'));
  
  // This will tell express how to move on to next expression
  app.use((req, res, next) => {
      res.locals.path = req.path;
      next();
  });
  
  app.get('/', router); // root url
  app.get('/index', router); // index url
  
  // Start listening on port 3000
  app.listen(8000, () => {
      console.log('Server running on port 8000');
  });