annakrystalli
7/8/2017 - 11:27 AM

Launch a local live server to test web based apps locally (eg XMLHttpRequest)

Launch a local live server to test web based apps locally (eg XMLHttpRequest)

## Make sure `node.js` is installed. Navigate to folder containing index.html doc you want to test.

npm install -g live-server

# This installs it globally so it can be accessed from anywhere. Then, again in the same folder run:
live-server

# This opens app in browser through port 8080. If you open console, JavaScript server based functionality should now be working.