Creating a Wasm App
Explore how to build a simple web server as a WebAssembly app using Spin. Learn to scaffold, edit, and compile the Rust-based app into a Wasm binary. Understand how to run and test the app locally before containerizing it, gaining practical skills in Docker and WebAssembly integration.
We'll cover the following...
We'll cover the following...
Write a Wasm app
We’ll use Spin to create a simple web server that we’ll compile as a Wasm app. In future steps, we’ll build, ship, and run the app as a Wasm container.
Change into a new directory and then run the following command to create a new Wasm app called hello-world. Respond to the prompts as shown in the example.
$ spin new hello-world -t http-rustDescription: Wasm appHTTP path: /hello
Creating a new Wasm project
The command creates a new ...