O'Reilly logo

TypeScript Microservices by Parth Ghiya

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Registering with Eureka server

Now that our Eureka server is up and running and ready to accept the registration of microservices, we will register a demo microservice and see it on the Eureka dashboard. You can follow along with the source code attached to the source files (first-microservice-register). Let's get started:

  1. Pull up our first microservice code from Chapter 2Gearing up for the Journey. We will be using the eureka-js-client (https://www.npmjs.com/package/eureka-js-client) module in the project, which is a JavaScript implementation of Netflix OSS Eureka.

 

  1. Open up a Terminal and install eureka-js-client:
npm i eureka-js-client --save
  1. Next, we will install the types of eureka-js-client to be used in our TypeScript project. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required