Skip to content

Instantly share code, notes, and snippets.

@danimajo danimajo/server.js
Created May 8, 2012

Embed
What would you like to do?
static http webserver with node.js and connect
var connect = require('connect');
//Hier den Pfad eingeben,
//indem die statischen (html/js/css) Files liegen.
var HTDOCSPATH = 'C:\\data\\js\\learn'
console.log("serving from dir " + HTDOCSPATH)
connect.createServer(
connect.static(HTDOCSPATH)
).listen(8080);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.