Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reecepbcups/kv-libp2p-example


https://github.com/reecepbcups/kv-libp2p-example

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# KV libp2p Example

A mock Key-Value client and server using libp2p (like redis).

Why:
- Learn [LibP2P](https://libp2p.io/) for [Gordian](https://github.com/rollchains/gordian)
- Build a proper Client x Server in Go (only done in Python)

Manual Testing:
```
sh build.sh start

NODE=/ip4/127.0.0.1/tcp/43459/p2p/XXXXXXXXXXXXXXXXXXX

sh build.sh -p $NODE kv set users name Reece
sh build.sh -p $NODE kv get users name

sh build.sh -p $NODE kv set users other AnotherName
sh build.sh -p $NODE kv set table2 userId 1

sh build.sh -p $NODE kv keys users
sh build.sh -p $NODE kv values users

sh build.sh -p $NODE kv all
sh build.sh -p $NODE kv del users name
```