This commit is contained in:
folex 2019-08-18 13:58:31 +03:00
parent ead031caa0
commit 58c0afd0ca
3 changed files with 26 additions and 8 deletions

View File

@ -1,5 +1,7 @@
# fluid # Fluid decentralized twitter-like feed built on Fluence with SQLite
Decentralized twitter-like feed built with Fluence
## Workshop
Workshop scenario could be found [here](https://fluence.dev/page/workshop-fluid-decentralized-twitter-like-feed-built-on-fluence)
# SQLite + (Rust | AssemblyScript) # SQLite + (Rust | AssemblyScript)
This project is an example of how to link and use SQLite WASM with modules written in Rust or AssemblyScript. This project is an example of how to link and use SQLite WASM with modules written in Rust or AssemblyScript.

View File

@ -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)

View File

@ -1,9 +1,4 @@
# Fluid decentralized twitter-like feed built on Fluence with SQLite ## Rust How to run steps
## Workshop
Workshop scenario could be found [here](https://fluence.dev/page/workshop-fluid-decentralized-twitter-like-feed-built-on-fluence)
## 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 There's a `run.sh` script in each step, but if you'd like to run it manually, here's the instructions
```shell ```shell