js-libp2p/examples/libp2p-in-the-browser
Thomas Eizinger 4ed5c039fc chore: change from ipfs to p2p protocol (#315)
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.
2019-02-05 19:59:42 +01:00
..
2019-01-07 15:07:42 -07:00

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

Version Published on IPFS