Skip to content

Instantly share code, notes, and snippets.

@goldnetonline
Created September 2, 2016 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goldnetonline/59ed8e733dfda2c20732e1c95b2228c3 to your computer and use it in GitHub Desktop.
Save goldnetonline/59ed8e733dfda2c20732e1c95b2228c3 to your computer and use it in GitHub Desktop.
node.js quick server with express
var express = require('express');
var server = express();
server.use(express.static(__dirname + '/'));
var port = 80;
server.listen(port, function() {
console.log('server listening on port ' + port);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment