Last active
October 28, 2016 20:45
-
-
Save burdiuz/0d25701dcc16f80c93aecf371dd57c0e to your computer and use it in GitHub Desktop.
Simple HTTP server for static files using 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
/** | |
node server | |
http://localhost:8081 | |
*/ | |
(function(express){ | |
this.use(express.static('.')); | |
this.listen(8081, function(){ | |
console.log('Server started...'); | |
}); | |
}).apply(require('express')(), [require('express')]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment