watcher-ts/packages/cli/README.md

557 B

cli

chat

A basic CLI to pass messages between peers using stdin/stdout

  • Install dependencies:

    yarn install
    
  • Build the peer package:

    cd packages/peer
    yarn build
    
  • (Optional) Run a local relay node:

    # In packages/peer
    yarn relay-node
    
  • Start the node:

    # In packages/cli
    yarn chat --relay-node <RELAY_NODE_URL>
    
    • relay-node: multiaddr of a hop enabled relay node
  • The process starts reading from stdin and outputs messages from others peers to stdout.