Skip to content

Instantly share code, notes, and snippets.

@yousfiSaad
Created October 17, 2015 13:30
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 yousfiSaad/892235cb9a3534c2ecce to your computer and use it in GitHub Desktop.
Save yousfiSaad/892235cb9a3534c2ecce to your computer and use it in GitHub Desktop.
var express = require('express');
var app = express();
app.use('/', express.static(__dirname));
var server = app.listen(9090, function () {
var host = server.address().address;
var port = server.address().port;
console.log('App listening at http://%s:%s', host, port);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment