https://github.com/frigus02/wasmcloud-playground
https://github.com/frigus02/wasmcloud-playground
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/frigus02/wasmcloud-playground
- Owner: frigus02
- License: mit
- Created: 2021-01-22T15:37:43.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-16T20:05:12.000Z (about 5 years ago)
- Last Synced: 2024-10-06T09:43:46.704Z (almost 2 years ago)
- Language: Rust
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wasmcloud Playground
## Required tools
- Our modules are compiled to WebAssembly, so we need the wasm target:
```
rustup target add wasm32-unknown-unknown
```
- We need `wash` (the WebAssembly shell) to generate keys and sign our modules:
```
brew tap wasmcloud/wasmcloud
brew install wasmcloud wash
```
- For code generation we also need the waPC CLI:
```
brew install wapc/tap/wap
```
- For data storage we need a local Redis instance and we use a local Docker registry to store our signed modules:
```
docker compose up -d
```
## Start the app
1. `make run` compiles the modules in release mode and starts them in wasmcloud
1. Open your browser at http://localhost:8080
## Develop on the app
1. `make watch` compiles the modules in debug mode, starts then in wash up and watches for changes
1. Open your browser at http://localhost:8080
1. Make changes in any of the modules and compile it with `make build`. The actor should be updated automatically. Reload the page in your browser to see the changes