From the course: Node.js: Microservices
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Setting up the registry - Node.js Tutorial
From the course: Node.js: Microservices
Setting up the registry
- [Instructor] Are you ready to create the registry service? I am as well. To get started, I will first open the Workspace Directory, in there also the Microservices folder, and then I open the Resources folder, and in there you see that I already have prepared a Registry Service more or less template, and I can now simply take this folder and drag it into my Microservices directory. I click Move, and this is done. So now Registry Service is in the Microservices directory. Next, I will open the terminal, and then I will move into the Service Registry directory by again just dragging the folder into the terminal, and it will copy the directory right in. And in there I will now run npm install to install all the dependencies. And then already I can run npm run dev, and you see that the service greets us with a friendly log message. If we look into this service, the only major difference to the catalog service that we…
Contents
-
-
-
-
-
-
What's your goal for this chapter?1m 59s
-
(Locked)
Setting up the registry5m 6s
-
(Locked)
Registering services6m 55s
-
(Locked)
Creating and testing the registration route5m 9s
-
(Locked)
Unregistering services9m 27s
-
(Locked)
Querying the registry8m 23s
-
(Locked)
Removing expired services7m 18s
-
(Locked)
Registering on service on start5m 9s
-
(Locked)
Adding heartbeat and unregistering on shutdown4m 53s
-
-
-
-
-