https://github.com/apchavan/go-libp2p-tutorial
Official guide to run a go-libp2p node.
https://github.com/apchavan/go-libp2p-tutorial
Last synced: 25 days ago
JSON representation
Official guide to run a go-libp2p node.
- Host: GitHub
- URL: https://github.com/apchavan/go-libp2p-tutorial
- Owner: apchavan
- License: mit
- Created: 2023-05-01T11:56:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-04T07:57:14.000Z (about 3 years ago)
- Last Synced: 2025-03-01T11:33:00.794Z (over 1 year ago)
- Language: Go
- Size: 247 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Getting started guide for `go-libp2p` node
---
This repo contains source code example for running a simple node with [libp2p](https://libp2p.io/)'s [Go](https://go.dev/) implementation called [go-libp2p](https://github.com/libp2p/go-libp2p). The node can send and receive "ping" messages depending on how it started the execution.
### Required commands:
1. Build module:
Unix/Linux: `go build -o `
or
Windows: `go build -o .exe`
2. Run listening node in one terminal:
Unix/Linux: `./OUTPUT_BINARY_NAME`
or
Windows: `OUTPUT_BINARY_NAME.exe`
3. Ping listening node from another terminal using [multiaddress](https://docs.libp2p.io/concepts/fundamentals/addressing/) as command line argument:
Unix/Linux: `./OUTPUT_BINARY_NAME multiaddress`
or
Windows: `OUTPUT_BINARY_NAME.exe multiaddress`
### Demo of build & execution:

---
Official reference guide: [Run a go-libp2p node](https://docs.libp2p.io/guides/getting-started/go/)