fluid/backend-rust/README.md

17 lines
599 B
Markdown
Raw Normal View History

2019-08-14 14:04:18 +03:00
# How to run
```shell
2019-08-15 10:12:49 +03:00
# Download SQLite WASM module
2019-08-14 14:04:18 +03:00
mkdir wasm
2019-08-15 10:12:49 +03:00
wget https://github.com/fluencelabs/sqlite/releases/download/v0.2.0_w/sqlite3_0.2.0.wasm -O ./wasm/sqlite3_0.2.0.wasm
# Build fluid WASM module
2019-08-14 14:04:18 +03:00
cargo +nightly build --target wasm32-unknown-unknown --release
cp target/wasm32-unknown-unknown/release/*.wasm ./wasm/
2019-08-15 10:12:49 +03:00
# Run it all on 30000 port with default Fluence API
2019-08-14 14:04:18 +03:00
docker run -it --rm -v $(pwd)/wasm:/code -p 30000:30000 fluencelabs/frun:latest
```
2019-08-15 10:12:49 +03:00
Take a look at how to use frun [here](https://fluence.dev/docs/debugging) and look up HTTP API [here](https://fluence.dev/reference)