Skip to content

Instantly share code, notes, and snippets.

@DavidMellul
Created April 22, 2018 10:04
Show Gist options
  • Select an option

  • Save DavidMellul/2afcd7ecbe6ad83894972af8a2e0d536 to your computer and use it in GitHub Desktop.

Select an option

Save DavidMellul/2afcd7ecbe6ad83894972af8a2e0d536 to your computer and use it in GitHub Desktop.
// Dependencies
const express = require('express');
// Configure & Run the http server
const app = express();
app.use(express.static(__dirname, { dotfiles: 'allow' } ));
app.listen(80, () => {
console.log('HTTP server running on port 80');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment