Creating a simple server locally

If you are using ajax calls in javascript, it won’t work locally as browsers restrict xmlhttp calls.

Work around for this is to install node js locally and create a simple http server in any particular folder.

Once node is being installed, open node command prompt.

Locate to the folder and

Type
`npm install -g http-server`

This will create the server in your local folder

Then to start the server type
`http-server`

You can terminate it any time by ctrl+c