/* global process, require, __dirname, console */
/* eslint import/no-extraneous-dependencies: ["error", {"peerDependencies": true}] */
/**
 *
 * Simple NodeJS/Express Server
 *
 * ## Installation
 * ---------------------------
 * > touch .env
 * npm i -D dotenv express express-livereload compression body-parser
 *
 */
const path = require('path');
const cors = require('cors');
const helmet = require('helmet');
const express = require('express');
const bodyParser = require('body-parser');
const compression = require('compression');

require('dotenv').load({
  path: path.join(__dirname, '.env')
});
  
const config = {
  port: process.env.PORT || 9080,
  debug: process.env.DEBUG || false,
  public: path.join(__dirname, 'public')
};

const server = express();
server.disable('x-powered-by');
server.use(cors());
server.use(helmet());
server.use(compression());
server.use(bodyParser.json({ limit: '50mb' }));

// Express server is used to serve static ressouces
server.use('/', express.static(config.public));

server.listen(config.port, () => {
  if (!config.debug) return;
  const msg = `Server is running under http://localhost:${port}`;
  console.log(`\x1b[32m${msg}\x1b[39m`);
});

@@ -228,20 +228,37 @@
 %0A * 
-%3E touch
+%0A * %60echo %22PORT=9080%22 %3E
  .env
+%60
 %0A * 
@@ -285,50 +285,43 @@
 ess 
-express-livereload compression body-parser
+cors helmet body-parser compression
 %0A *%0A

Update server.js