From e82573a7e21986bcfe0b7f56d799e9fc142c214d Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Tue, 9 May 2023 17:47:03 +0200 Subject: [PATCH] improve Readme --- Readme.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 436d02d..2a6258d 100644 --- a/Readme.md +++ b/Readme.md @@ -2,12 +2,18 @@ This application is an example on how to use NATS in rust. Features implemented are Authentication, Publish-Subscribe and Request-Reply. -## Users +## Starting the server +Go to nats-server directory and run the run.sh script. + +## The client +Go to nats-client directory and execute `cargo run` + +### Users - admin is allowed everything - client may pusblish and subscribe to the chat channel - guest may only read chat messages -## Commands +### Chat commands - Writing anything will publish text as a messages - "invalid" will send a non json string - "request xyz" will send xyz as a request, getting an automated response