-
-
Save edinsoncs/c70343bfb41953cd0956 to your computer and use it in GitHub Desktop.
1 nodejs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //'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