From 58c0afd0caf2bbe61fc45cf188dc2e94a3b70576 Mon Sep 17 00:00:00 2001 From: folex <0xdxdy@gmail.com> Date: Sun, 18 Aug 2019 13:58:31 +0300 Subject: [PATCH] Readmes --- README.md | 6 ++++-- backend-assemblyscript/README.md | 21 +++++++++++++++++++++ backend-rust/README.md | 7 +------ 3 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 backend-assemblyscript/README.md diff --git a/README.md b/README.md index 6cc036f..381ec48 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ -# fluid -Decentralized twitter-like feed built with Fluence +# Fluid – decentralized twitter-like feed built on Fluence with SQLite + +## Workshop +Workshop scenario could be found [here](https://fluence.dev/page/workshop-fluid-decentralized-twitter-like-feed-built-on-fluence) # SQLite + (Rust | AssemblyScript) This project is an example of how to link and use SQLite WASM with modules written in Rust or AssemblyScript. diff --git a/backend-assemblyscript/README.md b/backend-assemblyscript/README.md new file mode 100644 index 0000000..1cab8bd --- /dev/null +++ b/backend-assemblyscript/README.md @@ -0,0 +1,21 @@ +## AssemblyScript – How to run steps +There's a `run.sh` script in each step, but if you'd like to run it manually, here's the instructions +```shell + +# Go into directory of the desired step (step3 used as example) +cd step3-finished-app + +# Download SQLite WASM module +mkdir wasm +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 +npm install +npm run flbuild +cp build/fluid.wasm wasm/fluid.wasm + +# Run it all on 30000 port with default Fluence API +docker run -it --rm -v $(pwd)/wasm:/code -p 30000:30000 fluencelabs/frun:latest +``` + +Also take a look at how to use frun [here](https://fluence.dev/docs/debugging) and look up HTTP API [here](https://fluence.dev/reference) diff --git a/backend-rust/README.md b/backend-rust/README.md index a0cc8d0..acf8bac 100644 --- a/backend-rust/README.md +++ b/backend-rust/README.md @@ -1,9 +1,4 @@ -# Fluid – decentralized twitter-like feed built on Fluence with SQLite - -## Workshop -Workshop scenario could be found [here](https://fluence.dev/page/workshop-fluid-decentralized-twitter-like-feed-built-on-fluence) - -## How to run steps +## Rust – How to run steps There's a `run.sh` script in each step, but if you'd like to run it manually, here's the instructions ```shell