Setup a Local Server

1. Open the command line application of your choice (Terminal, Command Prompt, etc)

3. Run this command:

python -m SimpleHTTPServer 8080

Note: The port number doesn't have to be 8080.

4. Open this URL in a browser:

http://localhost:8080

You are now running a server locally on port 8080.

If you have a file named index.html in your project directory, it should load by default.

To open other pages on your site, append their path relative to the project directory to the URL, like http://localhost:8080/otherpage.html.