peerbit-examples

所属分类:其他
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2024-01-12 21:10:47
上 传 者sh-1993
说明:  学习和娱乐示例库
(Example library for learning and fun)

文件列表:
packages/
.eslintrc.cjs
.prettierignore
.prettierrc.json
CODEOWNERS
LICENSE
LICENSE-MIT
demo-relay.env
global.d.ts
jest.config.ts
lerna.json
library.jpeg
package.json
tsconfig.json
yarn.lock


Libraryn

Peerbit Example Library

## Examples ### [Chat room](https://github.com/dao-xyz/peerbit-examples/blob/master/./packages/one-chat-room/) [](https://github.com/dao-xyz/peerbit-examples/blob/master/./packages/one-chat-room/) ### [Lobby + chat rooms](https://github.com/dao-xyz/peerbit-examples/blob/master/./packages/many-chat-rooms/) [](https://github.com/dao-xyz/peerbit-examples/blob/master/./packages/many-chat-rooms/) ### [Collaborative text document](https://github.com/dao-xyz/peerbit-examples/blob/master/./packages/text-document/) [](https://github.com/dao-xyz/peerbit-examples/blob/master/./packages/text-document/) ### [Sync files](https://github.com/dao-xyz/peerbit-examples/blob/master/./packages/file-share/) #### [React app](https://github.com/dao-xyz/peerbit-examples/blob/master/./packages/file-share/) [](https://github.com/dao-xyz/peerbit-examples/blob/master/./packages/file-share/) #### [CLI](https://github.com/dao-xyz/peerbit-examples/blob/master/./packages/file-share/) [](https://github.com/dao-xyz/peerbit-examples/blob/master/./packages/file-share/) ### [Live video streaming](https://github.com/dao-xyz/peerbit-examples/blob/master/./packages/live-streaming/) [](https://github.com/dao-xyz/peerbit-examples/blob/master/./packages/live-streaming/) ### [Collaborative machine learning](https://github.com/dao-xyz/peerbit-examples/blob/master/./packages/collaborative-learning/) [](https://github.com/dao-xyz/peerbit-examples/blob/master/./packages/collaborative-learning/) ## How to run the examples 1. ```sh 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 ```sh yarn start ``` and remotely on a test relay ```sh 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 ```sh npm install -g @peerbit/server ``` 3. ```sh 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](https://github.com/dao-xyz/peerbit-examples/blob/master/https://github.com/dao-xyz/peerbit/tree/master/packages/clients/peerbit-server).

近期下载者

相关文件


收藏者