Skip to content

Commit 222068b

Browse files
committed
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 <[email protected]>
1 parent 4f4fe83 commit 222068b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ NATS as backend with [Queue package](https://github.com/golang-queue/queue) (Con
99

1010
## Testing
1111

12+
setup the nats server
13+
14+
```sh
15+
docker run -d --name nats-main -p 4222:4222 -p 8222:8222 nats:latest
16+
```
17+
18+
run the test
19+
1220
```sh
1321
go test -v ./...
1422
```

0 commit comments

Comments
 (0)