Created
October 24, 2014 00:22
-
-
Save ernestlv/fe9172669b67808fb018 to your computer and use it in GitHub Desktop.
simple http server using connect module in node.js
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 connect = require("connect"); | |
var server = require("serve-static"); | |
var app = connect(); | |
app.use(server(__dirname + '/public')); | |
app.listen(8000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment