Running a simple web server from any directory

You just need Python installed to run a simple web server from any directory. On Mac Python is already installed. So you just need follow these steps below:

Run these commands in the terminal:

# access the directory
cd /path/to/directory

# start the web server in the port 8000
python -m SimpleHTTPServer 8000

# execute Ctrl+C to kill the web server

Open the browser and access the web server through http://localhost:8000.


See the demo in the original scale