dotnet-libp2p icon indicating copy to clipboard operation
dotnet-libp2p copied to clipboard

Improve samples UI

Open flcl42 opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe. The following examples need good UI and docs:

  • https://github.com/NethermindEth/dotnet-libp2p/tree/main/src/samples/chat
  • https://github.com/NethermindEth/dotnet-libp2p/tree/main/src/samples/pubsub-chat

Describe the solution you'd like

  • Add good console UI for the chats
  • Add usage docs and cli help

Additional context

  • the apps are analogous to https://github.com/libp2p/go-libp2p/tree/master/examples/chat and https://github.com/libp2p/go-libp2p/tree/master/examples/pubsub/chat

flcl42 avatar Nov 27 '23 13:11 flcl42

Hi @flcl42 , would like to work on this. Can you explain this in a bit more detail?

ssonthal avatar Feb 23 '24 05:02 ssonthal

@shubham-sonthalia thanks for the interest! Yep, sure. So the examples are similar to ones made for go implementation. Go apps have basic UI like this: image

We could try to make similar interface using any decent console-UI .NET library, and display logs in some convenient way or even write just to file optionally.

flcl42 avatar Feb 23 '24 12:02 flcl42

Okay, as I understand it, we need a UI for showing logs. To achieve this, the first ask is to search and use a good .NET UI library. Secondly, we need to bind this UI with the log data. Is my understanding correct?

ssonthal avatar Feb 23 '24 19:02 ssonthal

For console UI, can we go ahead with https://github.com/gui-cs/Terminal.Gui ?

ssonthal avatar Feb 23 '24 19:02 ssonthal

@shubham-sonthalia sorry I totally missed your replies, yep, you can try this lib, looks like it has all controls needed.

flcl42 avatar May 31 '24 08:05 flcl42