Last active
June 7, 2016 14:15
-
-
Save matthias-schuetz/e4a15b5cb7f3340955d4 to your computer and use it in GitHub Desktop.
node.js simple web 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 connect = require('connect'); | |
var serveStatic = require('serve-static'); | |
var http = require('http'); | |
var app = connect().use(serveStatic(__dirname)); | |
http.createServer(app).listen(3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment