Skip to content

Commit

Permalink
ci skip: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
flowerinthenight committed Sep 28, 2024
1 parent 5869e46 commit 146575c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,26 @@ To run locally using **b)**, the sample binary uses a free service, [https://key
# Build the sample binary:
$ zig build --summary all

# The sample code embeds the API key, with the group name as key.
# I suggest you change that.
# Generate UUID:
$ uuidgen
e9112971-e523-4374-b844-f79c805b9ae8

# Run the 1st process. The expected args look like:
#
# ./zgroup groupname member_ip:port
#

# Run the first process:
$ ./zig-out/bin/zgroup group1 0.0.0.0:8080
$ ZGROUP_JOIN_PREFIX=e9112971-e523-4374-b844-f79c805b9ae8 ./zig-out/bin/zgroup group1 0.0.0.0:8080

# Add a second node (different terminal):
$ ./zig-out/bin/zgroup group1 0.0.0.0:8081
$ ZGROUP_JOIN_PREFIX=e9112971-e523-4374-b844-f79c805b9ae8 ./zig-out/bin/zgroup group1 0.0.0.0:8081

# Add a third node (different terminal):
$ ./zig-out/bin/zgroup group1 0.0.0.0:8082
$ ZGROUP_JOIN_PREFIX=e9112971-e523-4374-b844-f79c805b9ae8 ./zig-out/bin/zgroup group1 0.0.0.0:8082

# Add a fourth node (different terminal):
$ ./zig-out/bin/zgroup group1 0.0.0.0:8083
$ ZGROUP_JOIN_PREFIX=e9112971-e523-4374-b844-f79c805b9ae8 ./zig-out/bin/zgroup group1 0.0.0.0:8083

# and so on...
```
Expand Down

0 comments on commit 146575c

Please sign in to comment.