This is a project template for developing servers.
In addition to MoonBit toolchain, you will need:
- wasm-tools
- wasmtime
- (Optional) just
- (Optional) hurl
Execute just serve to have a running server listening at port 8080. Execute just test in another terminal to check the output.
Execute just build release to get a release build under target/server.wasm.
- Modify the
topfunction insrc/stub.mbtto implement your CLI application. - Modify the
servefunction if you need finer control on the event loop.