Mac - Single Command Web Server

Running the following command will start a web server in the current directory:

python -m SimpleHTTPServer 8000

OR for python3 use:

python3 -m http.server

Then visit http://localhost:8000/ in your browser.

Published