text: const express = require('express');
  const logger = require('morgan');
  const bodyParser	= require('body-parser');
  const path = require('path');
  const app = express();
  
  app.use(logger('dev'));
  app.use(bodyParser.urlencoded({extended: true}));
  app.use(bodyParser.json());
  
  // Setup logger
  // app.use(morgan(':remote-addr - :remote-user [:date[clf]] ":method :url HTTP/:http-version" :status :res[content-length] :response-time ms'));
  
  // Serve static assets
  app.use(express.static(path.resolve(__dirname, '..', 'client/build')));
  
  require('./routes')(app);
  
  // Always return the main index.html, so react-router render the route in the client
  app.get('*', (req, res) => {
    res.sendFile(path.resolve(__dirname, '..', 'client/build/index.html'));
  });
  
  module.exports = app;
  