The first module will guide you through installing the prerequisites for completing the first part of this workshop.
First, you have to install and configure Spin by following the instructions for your operating system from the Spin documentation. This workshop assumes you're using Spin 2.5.1
. You can check your version of Spin, by running spin -V
.
To complete the exercises of this workshop, you must have the following Spin plugins and templates installed:
cloud
js2wasm
py2wasm
You can install them using the following commands:
# Update Spin Plugin information
$ spin plugins update
# Install required Spin plugins
$ spin plugins install cloud
$ spin plugins install js2wasm
$ spin plugins install py2wasm
Depending on the programming languages you want to use, you will need to configure their toolchains. For example:
- Rust
- Make sure to add the Wasm/WASI target:
rustup target install wasm32-wasi
- Make sure to add the Wasm/WASI target:
- TypeScript
- Python
- Go
- Also requires TinyGo
A: Make sure you have configured your Rust toolchain, and have added the wasm32-wasi
target using rustup target add wasm32-wasi
.
A: Make sure you have configured Node.js and npm
, and that you have executed npm install
in the directory with your component's package.json
file that contains the dependencies.
In this section you learned how to:
- Install the latest Spin CLI version
- Install the latest Spin templates
- Install the latest Spin plugins
- Proceed to 1. Getting started with Spin and WebAssembly
Let us know what you think in this short Survey.