Last active
December 27, 2015 23:29
-
-
Save yoelnacho/7406045 to your computer and use it in GitHub Desktop.
Levantar un servidor con Node + express
This file contains 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
var express = require('express'); | |
var app = express(); | |
// indica en consola que el server está ok | |
console.log("Servidor ON"); | |
// cada vez que nuestra app esté escuchando | |
// en el puerto 3000, muestra el mensaje. | |
app.get('/', function(req, res){ | |
res.send("Hello Wordl desde express"); | |
}); | |
app.listen(3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment