README: Add link to Aqua Book, mention NodeJS example

This commit is contained in:
folex 2021-08-12 18:03:19 +03:00
parent 176d026a7c
commit 93e7a340e6

View File

@ -1,10 +1,13 @@
# IPFS code execution # IPFS code execution example
This example showcases 2 things: This example showcases 2 things:
1. how it's possible to store .wasm modules on IPFS, then deploy them to Fluence as a service 1. how it's possible to store .wasm modules on IPFS, then deploy them to Fluence as a service
2. ability to process IPFS files via a Fluence service. In this example, we get a size of a file 2. ability to process IPFS files via a Fluence service. In this example, we get a size of a file
## How to run & use it ## Learn about AquaIPFS
### Web See [Aqua Book](https://doc.fluence.dev/aqua-book/libraries/aqua-ipfs).
## How to run & use this example
### Web example
1. Run it 1. Run it
``` ```
cd web cd web
@ -15,6 +18,13 @@ npm start
2. Press "deploy" 2. Press "deploy"
3. Copy WASM service CID and press "get_size" 3. Copy WASM service CID and press "get_size"
## Aqua implementation ### NodeJS example
The business logic is implemented in Aqua in [process.aqua](aqua/src/process_files.aqua) ```
cd nodejs
npm i
npm start
```
## Aqua implementation
The business logic is implemented in Aqua in [process.aqua](aqua/src/process.aqua)