b68d61068a
* Add workflow_call * Add missing import secrest * Run e2e with aqua-playground (#179) * Try to run e2e with aqua-playground * Use workflow_call to run local tests and publish snapshot * Run e2e and tests in parallel * Colors! * Always add comment * Use master branch of aqua-playground * Remove invalid `cache` key * Update .github/workflows/run-tests.yml * Fix branch name in version |
||
---|---|---|
.github | ||
docs | ||
packages | ||
.editorconfig | ||
.gitignore | ||
.npmrc | ||
ci.js | ||
CONTRIBUTING.md | ||
LICENSE | ||
pnpm-lock.yaml | ||
pnpm-workspace.yaml | ||
README.md | ||
typedoc.json | ||
typedoc.md |
Fluence JS
Official TypeScript implementation of the Fluence Peer.
Getting started
To start developing applications with Fluence JS refer to the official documentation
Contributing
While the project is still in the early stages of development, you are welcome to track progress and contribute. As the project is undergoing rapid changes, interested contributors should contact the team before embarking on larger pieces of work. All contributors should consult with and agree to our basic contributing rules.
Setting up dev environment
Fluence JS uses pnpm to manage monorepo packages. See pnpm.io for installation instructions.
Install dependencies
pnpm install
Build all packages
pnpm -r build
Repository structure
Folder | Package | Description |
---|---|---|
packages/fluence-js | @fluencelabs/fluence-js | TypeScript implementation of the Fluence Peer |
packages/fluence-interfaces | @fluencelabs/interfaces | Common interfaces used in Fluence Peer |
packages/fluence-connection | @fluencelabs/connection | Connectivity layer used in Fluence Peer |
packages/fluence-keypair | @fluencelabs/keypair | Key Pair implementation |
Running tests
Tests are split into unit and integration categories. By default integration tests require a locally running Fluence node with 4310 port open for ws connections. The dependency can be started with docker
docker run --rm -e RUST_LOG="info" -p 1210:1210 -p 4310:4310 fluencelabs/fluence -t 1210 -w 4310 -k gKdiCSUr1TFGFEgu2t8Ch1XEUsrN5A2UfBLjSZvfci9SPR3NvZpACfcpPGC3eY4zma1pk7UvYv5zb1VjvPHwCjj
To run all tests
pnpm -r test
To run only unit tests
pnpm -r test:unit
To run only integration tests
pnpm -r test:integration