From the course: Node.js: Microservices
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Creating the service client - Node.js Tutorial
From the course: Node.js: Microservices
Creating the service client
- [Instructor] I'm back in Visual Studio code and you can see in the console that both my registry service and the catalog service are running and ready. Next, we want to use this infrastructure to run our front-end shopper application. The first thing we are going to do is creating a helper class that will communicate with the registry and also do the call to the respective service. For that, I head to the shop application in my workspace. And the first thing I'm going to do is I show you the config file. So I head to server, config and open index chest. And there you see that starting in line 10 already prepared something for you. So that's the URL for the registry listing on point 3080 as configured before. And I also added an asterisk for the version. But this could as well be something like 0.0.1 or just version one. Anything like that would work. I'm using the asterisk here because with semver this means it…
Contents
-
-
-
-
-
-
-
(Locked)
What's your goal for this chapter?29s
-
(Locked)
Creating the service client9m 35s
-
(Locked)
Using the catalog service8m 11s
-
(Locked)
Testing the catalog service3m 1s
-
(Locked)
Sanitizing data5m 36s
-
(Locked)
Creating the CartService4m 56s
-
(Locked)
Service monitoring with OpenTelemetry and Jaeger3m 29s
-
(Locked)
-
-
-