From 222068b50962a5b6cc51f1e844a5cd0317a95053 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 6 Dec 2023 15:06:34 +0800 Subject: [PATCH] docs: add instructions for setting up and running the NATS server and tests - Add instructions for setting up the NATS server - Add code block for running the NATS server - Add instructions for running the tests Signed-off-by: Bo-Yi Wu --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index abc8b35..e98dba9 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,14 @@ NATS as backend with [Queue package](https://github.com/golang-queue/queue) (Con ## Testing +setup the nats server + +```sh +docker run -d --name nats-main -p 4222:4222 -p 8222:8222 nats:latest +``` + +run the test + ```sh go test -v ./... ```