Simple HTTP server with Python

Simple HTTP server

Need to quickly test how something works/functions but don’t want to go through the hassle of putting it on a webserver? Python has you covered.

$ cd /home/some/dir $ python -m SimpleHTTPServer

Then you can access the stuff in that directory it via http://localhost:8000/ in your browser!

Control + c stops it.