Basic HTTP Server
When working on static HTML you might need to test things with actual HTTP requests. On Linux or macOS you can spin up a server using python.
$ python3 -m http.server 8000
Now accessing http://localhost:8000/
will serve index.html
or a
directory listing.
People using legacy python 2 installs will need to use the SimpleHTTPServer
module.
$ python -m SimpleHTTPServer 8000