mirror of
https://github.com/fluencelabs/examples
synced 2025-03-16 00:00:51 +00:00
Bumps [@fluencelabs/aqua-ipfs](https://github.com/fluencelabs/aqua-ipfs/tree/HEAD/aqua) from 0.5.2 to 0.5.5. - [Release notes](https://github.com/fluencelabs/aqua-ipfs/releases) - [Commits](https://github.com/fluencelabs/aqua-ipfs/commits/v0.5.5/aqua) --- updated-dependencies: - dependency-name: "@fluencelabs/aqua-ipfs" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
IPFS code execution example
This example showcases 2 things:
- how it's possible to store .wasm modules on IPFS, then deploy them to Fluence as a service
- ability to process IPFS files via a Fluence service. In this example, we get a size of a file
Learn about AquaIPFS
See Aqua Book.
How to run & use this example
You need npm v7 or later to run the examples
Web example
-
Run it
npm i npm run build -w aqua npm start -w web
-
Press "deploy"
-
Copy WASM service CID and press "get_size"
NodeJS example
npm i
npm run build -w aqua
npm start -w nodejs
Aqua implementation
The business logic is implemented in Aqua in process.aqua