Run an HTTP server from any directory

python -m SimpleHTTPServer 8000

FYI, PHP also comes with a built-in server

php -S localhost:8080 -t ./public/
  • StackExchange
  • http://www.slimframework.com/docs/start/web-servers.html