Walkthrough Setup
We have provided Walkthroughs for you to try NATS (and JetStream) on your own. In order to follow along with the walkthroughs, you could choose one of these options:
The
nats
CLI tool must be installed, and a local NATS server must be installed (or you can use a remote server you have access to).You can use Synadia's NGS.
You could even use the demo server from where you installed NATS. This is accessible via
nats://demo.nats.io
(this is a NATS connection URL; not a browser URL. You pass it to a NATS client application).
Installing the nats
CLI Tool
nats
CLI ToolPlease refer to the installation section in the readme.
Installing the NATS server locally (if needed)
If you are going to run a server locally you need to first install it and start it. Please refer to the nats server installation doc
Alternatively if you already know how to use NATS on a remote server, you only need to pass the server URL to nats
using the -s
option or preferably create a context using nats context add
, to specify the server URL(s) and credentials file containing your user JWT.
Start the NATS server (if needed)
To start a simple demonstration server locally, simply run:
(or nats-server -m 8222
if you want to enable the HTTP monitoring functionality)
When the server starts successfully, you will see the following messages:
The NATS server listens for client connections on TCP Port 4222.
Last updated