bee
bee copied to clipboard
wasm
Checklist
- [ ] I have read the coding guide.
- [ ] My change requires a documentation update, and I have done it.
- [ ] I have added tests to cover my changes.
- [ ] I have filled out the description and linked the related issues.
Description
How to get this running:
- Clone the repo
-
gh pr checkout 5084 - Clone my fork of goleveldb
- Clone my fork of libp2p that includes WASM
- Build local bee node via
go build -o ./dist/bee ./cmd/bee - Start a local bee node in full mode and
--p2p-ws-enable -
make wasmto produce the WASM build - Change Peer ID in dist/sw.js to match your node's libp2p peer ID
-
cd dist && bun i && bun run build - Start a local web server in
distand navigate tolocalhost:{port} - Wait for SW to install
- Open SW debugger and observe the logs and ensure the node connected to bootnode addresses, as well as endpoints working