bee icon indicating copy to clipboard operation
bee copied to clipboard

wasm

Open v1rtl opened this issue 10 months ago • 0 comments

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:

  1. Clone the repo
  2. gh pr checkout 5084
  3. Clone my fork of goleveldb
  4. Clone my fork of libp2p that includes WASM
  5. Build local bee node via go build -o ./dist/bee ./cmd/bee
  6. Start a local bee node in full mode and --p2p-ws-enable
  7. make wasm to produce the WASM build
  8. Change Peer ID in dist/sw.js to match your node's libp2p peer ID
  9. cd dist && bun i && bun run build
  10. Start a local web server in dist and navigate to localhost:{port}
  11. Wait for SW to install
  12. Open SW debugger and observe the logs and ensure the node connected to bootnode addresses, as well as endpoints working

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

v1rtl avatar Apr 26 '25 21:04 v1rtl