-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(aqua-ipfs): Update example (#159)
* Use aqua keyword, use FCLI * Add new line * Use js-client * Fix index.ts * Fix compile * Remove any * Use helia, update addr * Return to ipfs-http-client * Update README * Use js-kubo-rpc-client * Update README and comments --------- Co-authored-by: Akim Mamedov <[email protected]>
- Loading branch information
1 parent
55414f6
commit 32238f1
Showing
6 changed files
with
3,092 additions
and
13,091 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Run example on TestNet | ||
While in `example` directory, `npm start` will run `index.ts` against Fluence TestNet | ||
While in `example` directory, `npm run start` will run `index.ts` against Fluence TestNet | ||
|
||
# Run example locally | ||
1. Go to `local-network` | ||
2. Run `docker compose up -d` to start Fluence cluster of 3 nodes | ||
3. Go back to `../example` | ||
4. Run `npm run start:local` | ||
To run example locally: | ||
1. Spin up local environment through [Fluence CLI](https://github.com/fluencelabs/cli)'s `local` command | ||
2. Pass local fluence peers multi addresses to `main` in `index.ts` | ||
3. (Optional) Change `IPFS_MULTIADDR` to address of your preferred IPFS node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
module Exports | ||
aqua Exports | ||
|
||
import put, get_from, set_timeout from "@fluencelabs/aqua-ipfs/ipfs-api.aqua" | ||
export put, get_from, set_timeout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.