1
0
mirror of https://github.com/fluencelabs/js-libp2p synced 2025-03-31 06:41:08 +00:00
Jacob Heun 48b1b442e9
docs: libp2p in browser example ()
* docs: improve browser example

* docs: remove bad ipfs link
2019-07-30 12:38:02 +02:00

515 B

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