How to complie and run Kotlin code in webpage

I want develop a webpage to study Kotin,and I wany write webpage with Kotin complie plug, thu,I can write code in webPage and run see the result. which like office Tutorials
like this:

Hi! You send the source code to the server, compile it there and send the result back.
You might want to use kotlin-compiler-embeddable for that.

Also the website source code is available on GitHub here.