Created
March 11, 2018 12:52
-
-
Save GoodNew5/a464dc7b098de0ce418f26ffa6c28064 to your computer and use it in GitHub Desktop.
local server
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 http = require('http'); | |
var static = require('node-static'); | |
var file = new static.Server('.'); | |
http.createServer(function (req, res) { | |
file.serve(req, res); | |
}).listen(5000); | |
console.log('Server running on port 5000'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment