Created
September 2, 2016 17:51
-
-
Save goldnetonline/59ed8e733dfda2c20732e1c95b2228c3 to your computer and use it in GitHub Desktop.
node.js quick server with 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 server = express(); | |
server.use(express.static(__dirname + '/')); | |
var port = 80; | |
server.listen(port, function() { | |
console.log('server listening on port ' + port); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment