/spin-demo

Demo app with Spin

Primary LanguageGo

Go Wasm with Spin

Spin Spin is a framework for building and running event-driven microservice applications with WebAssembly (Wasm) components.

This sample application illustrates writing multiple microservices with WASM in Golang.

Code organization

  • bar-http - Is a sample code that can respond to http calls. The code is compiled to WASM. It is a very simple miroservice http with endpoint /bar.

Build

To build the application with spin.

$ export SPIN_APP_APP_TEXT=1234
$ export SPIN_APP_USER_TOKEN=abc45789
$ spin build --up