Skip to content

Instantly share code, notes, and snippets.

@AWolf81 AWolf81/index.js
Created Sep 24, 2015

Embed
What would you like to do?
Connect serve static example
var connect = require('connect'),
http = require('http'),
serveStatic = require('serve-static'),
app = connect(),
server;
app.use(serveStatic("./angularjs"));
server = http.createServer(app);
server.listen(5000, function() {
console.log('listening on port 5000');
});
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.