This is a fork of Lachie's repository. For those who want to take a trip down memory lane, here and here you can find Lachie's original demo videos.
To build the application locally, you need Spin and the TinyGo compiler:
$ spin build
Executing the build command for component croc-hunter: tinygo build -target=wasi -gc=leaking -o croc-hunter.wasm croc-hunter.go
Successfully ran the build command for the Spin components.
To run the application locally:
$ spin up
Logging component stdio to ".spin/logs/"
Serving http://127.0.0.1:3000
Available Routes:
croc-hunter: http://127.0.0.1:3000
fileserver: http://127.0.0.1:3000/static (wildcard)
Sign up for a free Fermyon Cloud account, then run spin deploy
:
$ spin deploy
Uploading croc-hunter version 0.1.0+r33d66ef1...
Deploying...
Waiting for application to become ready........ ready
Available Routes:
croc-hunter: https://croc-hunter.fermyon.app
fileserver: https://croc-hunter.fermyon.app/static (wildcard)