Ever wondered how to do this super simple thing, which should be really easy but for which there is almost no documentation? Wonder no more! In just a few lines of arcane incantations in various languages, it's super easy!
(I kid! Only about 3 of the incantations are arcane!)
Live Demo (Open dev tools to see the console logs.)
Requires Rust and Emscripten (obviously). Only tested on Linux.
make
# or
make debug
# or
make release
(Default is debug
.)
cd out/debug # (or out/release)
python2 -m SimpleHTTPServer
Really, there's so little code. Just take a look! (It's got comments, even.)