Friday, February 10, 2017


A quick post today to talk about a nice Node.js tool called live-server. This app starts up a simple development http server to serve your web apps on your local computer. It also watches for changes to your pages and tells the browser to reload them automatically.

There was a time when you used to be able to just run your web apps straight from the file system. Those days are gone due to increased security with browsers. Also, if you want your page to make ajax calls that won't happen over the file protocol either, again due to security restrictions. So this is a really simple way to start up a server without having to configure something like IIS.

All you have to do is go to the folder in your file system where you want to serve files from and fire it up from a node command line. And just like that you're in business, it couldn't be any easier.

No comments:

Post a Comment