Skip to content

Instantly share code, notes, and snippets.

@a0viedo
Created November 28, 2014 19:01
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 a0viedo/029fa170569baf2b5bbf to your computer and use it in GitHub Desktop.
Save a0viedo/029fa170569baf2b5bbf to your computer and use it in GitHub Desktop.
var express = require('express');
var app = express();
app.get('/', function (req, res) {
//res.send('index.html');
res.send('hola');
});
app.get('/index.html', function(req, res){
//res.send('index.html');
res.send('hola');
});
var server = app.listen(8000, function () {
var host = server.address().address;
var port = server.address().port;
console.log('Example 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