Created
February 1, 2015 12:52
-
-
Save nrafter/6083d8c7d3e78f23870c to your computer and use it in GitHub Desktop.
nodejs code to run a static file server, so that you can load resources in your single html you want to view
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'); | |
connect().use(serveStatic(__dirname)).listen(8080); | |
console.log('displaying text so you know something happened') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment