JS/TS Peer for the Fluence p2p network
Go to file
2021-10-26 21:53:22 +03:00
.github/workflows KeyPair: add fromBytes, toEd25519PrivateKey (#78) 2021-09-14 12:16:17 +03:00
src Replace fromBytes in favor of fromEd25519SK in KeyPair class (#81) 2021-09-24 17:19:28 +03:00
.eslintrc.js Tetraplets (#1) 2020-12-23 17:24:22 +03:00
.gitignore Update JS SDK API to the new version (#61) 2021-09-08 12:42:30 +03:00
.npmignore Builtin methods, update aquamarine (#960) 2020-10-23 14:01:21 +03:00
.prettierrc.js Tetraplets (#1) 2020-12-23 17:24:22 +03:00
CONTRIBUTING.md Returned built-in Aquamarine calls, updated docs (#11) 2021-01-29 16:48:27 +03:00
jest-patched-jsdom.js Update air (#47) 2021-05-12 00:01:44 +03:00
jest.config.js Update air (#47) 2021-05-12 00:01:44 +03:00
LICENSE Returned built-in Aquamarine calls, updated docs (#11) 2021-01-29 16:48:27 +03:00
package-lock.json Update AVM version to fix bugs 2021-10-26 21:53:22 +03:00
package.json Update AVM version to fix bugs 2021-10-26 21:53:22 +03:00
README.md Update JS SDK API to the new version (#61) 2021-09-08 12:42:30 +03:00
tsconfig.json Update JS SDK API to the new version (#61) 2021-09-08 12:42:30 +03:00

Fluence JS SDK

npm

Official SDK providing javascript-based implementation of the Fluence Peer.

Getting started

To start developing applications with JS SDK refer to the official gitbook page

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

Install node packages

npm install

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:freeze -t 1210 -w 4310 -k gKdiCSUr1TFGFEgu2t8Ch1XEUsrN5A2UfBLjSZvfci9SPR3NvZpACfcpPGC3eY4zma1pk7UvYv5zb1VjvPHwCjj

To run all tests in interactive mode

npm run test

To run only unit tests

npm run test:unit

To run only integration tests

npm run test:unit

To run all tests

npm run test:all

License

Apache 2.0