Created
July 14, 2016 19:05
-
-
Save vaporic/f9c3f1d67c39024a99e0bf1660e7770f to your computer and use it in GitHub Desktop.
Server express js
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
var express = require('express'); | |
var app = express(); | |
app.get('/', function(req, res){ | |
res.send('Hola mundo!'); | |
}); | |
app.listen(3000, function(err){ | |
if(err) return console.log('Hubo un error'), process.exit(1); | |
console.log('Site escuchando en el puerto 3000'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment