Created
June 1, 2013 15:26
-
-
Save alexkravets/5690743 to your computer and use it in GitHub Desktop.
Localhost web server in a few lines using Node.js and Connect.
This file contains hidden or 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 app = connect() | |
.use(connect.logger('dev')) | |
.use(connect.static('www')) | |
.listen(3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment