examples/aqua-examples/aqua-ipfs-integration
renovate[bot] 6d12ba82de
chore(deps): update rust crate marine-rs-sdk-test to 0.9.1 (#441)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-17 23:35:47 -05:00
..
aqua chore(deps): update dependency @fluencelabs/aqua to v0.10.3 (#432) 2023-02-28 17:50:23 -07:00
local-network move ipfs example 2021-08-01 17:03:35 -05:00
nodejs chore(deps): update dependency @fluencelabs/aqua to v0.10.3 (#432) 2023-02-28 17:50:23 -07:00
service chore(deps): update rust crate marine-rs-sdk-test to 0.9.1 (#441) 2023-04-17 23:35:47 -05:00
web fix(deps): update dependency @fluencelabs/fluence-network-environment to v1.0.14 (#424) 2023-02-16 09:12:01 -06:00
.gitignore move ipfs example 2021-08-01 17:03:35 -05:00
.npmrc Aqua examples: checking npm version in aqua-ipfs-integration (#37) 2021-12-07 21:10:36 +03:00
.prettierrc.js Integration tests for all JS-related projects (#97) 2022-02-22 23:20:45 +03:00
package-lock.json chore(deps): update fluence js (#434) 2023-03-15 12:55:39 -05:00
package.json chore(deps): update dependency @fluencelabs/aqua to v0.10.3 (#432) 2023-02-28 17:50:23 -07:00
README.md add outdated notice 2023-03-01 05:53:58 -07:00

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:

  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

Learn about AquaIPFS

See Aqua Book.

How to run & use this example

You need npm v7 or later to run the examples

Web example

  1. Run it

    npm i
    npm run build -w aqua
    npm start -w web
    
  2. Press "deploy"

  3. 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