mirror of
https://github.com/fluencelabs/examples
synced 2025-06-24 23:31:33 +00:00
intro: 4-ipfs-code-execution (#15)
This commit is contained in:
20
intro/4-ipfs-code-execution/README.md
Normal file
20
intro/4-ipfs-code-execution/README.md
Normal file
@ -0,0 +1,20 @@
|
||||
# IPFS code execution
|
||||
This example showcases 2 things:
|
||||
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
|
||||
|
||||
## How to run & use it
|
||||
### Web
|
||||
1. Run it
|
||||
```
|
||||
cd web
|
||||
npm i
|
||||
npm start
|
||||
```
|
||||
|
||||
2. Press "deploy"
|
||||
3. Copy WASM service CID and press "get_size"
|
||||
|
||||
## Aqua implementation
|
||||
The business logic is implemented in Aqua in [process.aqua](aqua/src/process_files.aqua)
|
||||
|
Reference in New Issue
Block a user