didil / gowasm-elevatorsaga

The elevator programming game, modified to accept GO WASM input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GO WASM Elevator Saga

The elevator programming game, modified to accept GO WASM input:

  • The user submits his go code
  • A POST request is sent to a REST API endpoint with the user code + a hash
  • The reverse proxy checks the cache, in case of a cache HIT the next step is skipped
  • The Go API server builds the wasm binary in a docker container
  • The wasm binary is returned to the browser and loaded
  • Frontend JS calls the wasm code and runs the solution

Intro Article: Practice your Go WebAssembly with a Game

Only tested on Chrome v71+ !

TODO:

  • try out tinygo

Play it now!

Image of Elevator Saga in browser

About

The elevator programming game, modified to accept GO WASM input

License:MIT License


Languages

Language:JavaScript 92.1%Language:HTML 4.0%Language:CSS 3.1%Language:Go 0.7%Language:Shell 0.0%Language:Makefile 0.0%Language:Dockerfile 0.0%