Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 2.83 KB

00-setup.md

File metadata and controls

66 lines (44 loc) · 2.83 KB

Setup

The first module will guide you through installing the prerequisites for completing the first part of this workshop.

Configuring your local environment for Spin

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:

Troubleshooting

Q: I cannot build my Rust application with spin build.

A: Make sure you have configured your Rust toolchain, and have added the wasm32-wasi target using rustup target add wasm32-wasi.

Q: I cannot build my JavaScript or TypeScript application with spin build.

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.

Learning Summary

In this section you learned how to:

  • Install the latest Spin CLI version
  • Install the latest Spin templates
  • Install the latest Spin plugins

Navigation

Let us know what you think in this short Survey.