mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-03-16 23:50:51 +00:00
https://github.com/multiformats/js-multiaddr/pull/76 changed the default protocol from ipfs to p2p. js-multiaddr is a transitive dependency of peer-info, so in order to get this change, we had to bump the version of peer-info. * fix: revert ipfs -> p2p change for some tests As per PR feedback. Needed for backwards-compatibility.
libp2p running in the Browser
One of the primary goals with libp2p P2P was to get it fully working in the browser and interopable with the versions running in Go and in Node.js.
1. Setting up a simple app that lists connections to other nodes
Start by installing libp2p's dependencies.
> cd ../../
> npm install
> cd examples/libp2p-in-the-browser
Then simply go into the folder 1 and execute the following
> cd 1
> npm install
> npm start
# open your browser in port :9090