Skip to content

Latest commit

 

History

History
 
 

http-hello-world

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

HTTP Hello World

This is a simple TinyGo Wasm example that responds with a "Hello World" message for each request.

Prerequisites

  • go 1.21.1
  • tinygo 0.30
  • wash 0.26.0
  • wasmtime 17.0.0 (if running with wasmtime)

Building

wash build

Running with wasmtime

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

Running with wasmCloud

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

Adding Capabilities

To learn how to extend this example with additional capabilities, see the Adding Capabilities section of the wasmCloud documentation.