This is a simple TinyGo Wasm example that responds with a "Hello World" message for each request.
go
1.21.1tinygo
0.30wash
0.26.0wasmtime
17.0.0 (if running with wasmtime)
wash build
You must have wasmtime 17.0.0 for this to work. Make sure to follow the build step above first.
wasmtime serve -Scommon ./build/http_hello_world_s.wasm
Make sure to follow the build steps above, and replace the file path in the wadm manifest with the absolute path to your local built component.
wash up -d
wash app deploy ./wadm.yaml
curl http://localhost:8080
To learn how to extend this example with additional capabilities, see the Adding Capabilities section of the wasmCloud documentation.