dao-xyz / peerbit-examples

Example library for learning and fun
Apache License 2.0
7 stars 3 forks source link


Libraryn

Peerbit Example Library

Examples

Chat room

Lobby + chat rooms

Blog platform

Collaborative text document

Sync files

React app

CLI

Live video streaming

Collaborative machine learning

How to run the examples

  1. yarn
    yarn lerna bootstrap
    yarn build
  2. Go into an example. If it is a frontend app, you can run it locally (if you have a node running (see below)) with

yarn start

and remotely on a test relay

yarn start-remote 

How to setup a local relay node

(This is just a basic libp2p-js node)

  1. Install Node >= 16

  2. Install CLI

    npm install -g @peerbit/server
  3. peerbit start

Ending with '&' to start a background process

For more complete instructions on how to run a node in a server center that can be accessed remotely see this.