Created
June 16, 2017 20:13
-
-
Save mathiasgheno/9b1a86317e7db6d9293a34c974269e35 to your computer and use it in GitHub Desktop.
just a simple server in 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(); | |
app.get('/', function(req, res){ | |
res.send('oi'); | |
}); | |
app.listen(80, function(){ | |
console.log(' Servidor rodando na porta 80'); | |
console.log(' Acesse o ip do servidor ou o domínio configurado'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment