Skip to content

Instantly share code, notes, and snippets.

@edinsoncs
Created February 28, 2016 19:25
Show Gist options
  • Select an option

  • Save edinsoncs/c70343bfb41953cd0956 to your computer and use it in GitHub Desktop.

Select an option

Save edinsoncs/c70343bfb41953cd0956 to your computer and use it in GitHub Desktop.
1 nodejs
//'use strict';
var http = require('http');
var puerto = '3000';
http.createServer(function(req, res){
//respondemos nuestro head con el status
res.writeHead(200, {'Content-type': 'text/html'});
res.end('<h1>Hello Nodejs</h1>');
}).listen(puerto, function(){
console.log('esta corriendo server ' + puerto)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment