This repository holds a simple implementation of a LAN based peer-to-peer chat application that makes use of libp2p. The application discovers other peers using mDNS and exchanges messages via a gossip based pubsub system.
To try out the application, you can use the following command to start a single node of the application within the local network. Any additional nodes that are started will automatically connect to the smae chat channel and messages send by a single node will be visible to all other nodes within the LAN.
go run . -name Legolas
This project makes use of Nix, so it's possible to use the following commands to enter a shell environment with go
available. The tools available within the Nix shell is defined within the flake.nix file.
nix develop
Furthermore, it's possible to build and run the application using the following commands respectively.
nix build
nix run