Created
March 9, 2017 02:06
-
-
Save PabloEzequiel/f5560226e80f102c30b18481e1bf84e2 to your computer and use it in GitHub Desktop.
Servidor básico con NodeJS
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
// Start the server with express | |
var express = require('express'); | |
var app = express(); | |
app.get('/hello', function (req, res) { | |
res.send('Hello World!'); | |
}); | |
app.listen(3000, function () { | |
console.log('Places2go - listening on port 3000!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment