Skip to content

Instantly share code, notes, and snippets.

@AWolf81
Created September 24, 2015 19:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AWolf81/d1e3213894a16971b071 to your computer and use it in GitHub Desktop.
Save AWolf81/d1e3213894a16971b071 to your computer and use it in GitHub Desktop.
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