examples/aqua-examples/aqua-ipfs-integration
2022-02-09 14:11:43 +03:00
..
aqua bump versions 2022-02-08 14:01:15 -06:00
local-network move ipfs example 2021-08-01 17:03:35 -05:00
nodejs bump versions 2022-02-08 14:01:15 -06:00
service bump versions 2022-02-08 14:01:15 -06:00
web Update FluenceJS versions everywhere 2022-02-09 14:11:43 +03: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
package-lock.json bump versions 2022-02-08 14:01:15 -06:00
package.json bump versions 2022-02-08 14:01:15 -06:00
README.md bump versions 2022-02-08 14:01:15 -06:00

IPFS code execution example

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