2017-07-09 16:52:37 +01: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
|
|
|
|
|
2019-01-07 19:19:02 +01:00
|
|
|
Start by installing libp2p's dependencies.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
> cd ../../
|
|
|
|
> npm install
|
|
|
|
> cd examples/libp2p-in-the-browser
|
|
|
|
```
|
|
|
|
|
|
|
|
Then simply go into the folder [1](./1) and execute the following
|
2017-07-09 16:52:37 +01:00
|
|
|
|
|
|
|
```bash
|
|
|
|
> cd 1
|
|
|
|
> npm install
|
|
|
|
> npm start
|
|
|
|
# open your browser in port :9090
|
|
|
|
```
|
2017-08-24 10:58:06 +01:00
|
|
|
|
2017-11-04 16:44:09 +00:00
|
|
|
[Version Published on IPFS](http://ipfs.io/ipfs/Qmbc1J7ehw1dNYachbkCWPto4RsnVvqCKNVzmYEod2gXcy)
|