mirror of
https://github.com/fluencelabs/examples
synced 2024-12-04 19:20:17 +00:00
6d12ba82de
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
aqua | ||
local-network | ||
nodejs | ||
service | ||
web | ||
.gitignore | ||
.npmrc | ||
.prettierrc.js | ||
package-lock.json | ||
package.json | ||
README.md |
IPFS code execution example
The build and deploy instructions as well as some of the Aqua code are outdated and the deployed services are no longer available. An updated version will be available soon.
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