Compile nim hello world to wasm and serve it via http server.
Requirements: emcc
should be available via path.
hello.nim
world is just
echo "hello world"
Download nim.cfg
in the same path as hello.nim
, compile using nim c hello.nim
, and then compile & run server using nim c -r --skipProjCfg:on httpserve.nim
. Open http://127.0.0.1:8080/index.html
and you should see example hello world.