Skip to content

Instantly share code, notes, and snippets.

@inotives
Last active March 17, 2017 13:14
Show Gist options
  • Save inotives/aa6f4bda4a69e349bfb8 to your computer and use it in GitHub Desktop.
Save inotives/aa6f4bda4a69e349bfb8 to your computer and use it in GitHub Desktop.
express static server template
var express = require('express');
var app = express();
var port = 1314;
app.use(express.static('public'));
app.listen(port, function() {
console.log('Server started and listening to::'+port);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment