js-libp2p/examples/libp2p-in-the-browser
Jacob Heun 4cb541ddae
docs: update examples for latest libp2p rc (#353)
* docs: update chat example readme

* docs: update discovery test for autodial

* docs: fix delegated routing example

* docs: update echo example readme

* docs: fix libp2p in the browser example

* docs: update examples for peer/content routing

* docs: update the pubsub example
2019-04-11 15:52:04 +02: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