- cd into the project directory and run
go mod tidy
- my docker configuration for NATS JetStream,
- Run following,
- create nats-network named as
nats-net
docker network create nats-net
- then run the image,
docker run --name nats-server --network nats --rm -p 4222:4222 -p 8222:8222 nats --http_port 8222 -js
- finally after all the setup run,
go run .