Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
node.js simple web server
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