Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reecepbcups/kv-libp2p-example
https://github.com/reecepbcups/kv-libp2p-example
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/reecepbcups/kv-libp2p-example
- Owner: Reecepbcups
- Created: 2024-04-21T21:35:36.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-21T23:20:27.000Z (8 months ago)
- Last Synced: 2024-06-19T15:08:40.710Z (6 months ago)
- Language: Go
- Size: 2.56 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 startNODE=/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 namesh build.sh -p $NODE kv set users other AnotherName
sh build.sh -p $NODE kv set table2 userId 1sh build.sh -p $NODE kv keys users
sh build.sh -p $NODE kv values userssh build.sh -p $NODE kv all
sh build.sh -p $NODE kv del users name
```