How to register angular application on eureka server

Viewed 728

I have a use case in which I need to register my angular application on spring-cloud eureka server. I found a library, eureka-js-client, but am unable to understand where should I put the config.

Also, it has something called client.start() and client.end() to start and stop sending heartbeats to eureka server, but we use use ng serve to run angular app.

Can someone provide me with the changes I need to make to a hello-world angular project to register it to eureka server?

1 Answers

Angular runs in the browser. eureka-js-client is an node.js server library, so you need to implement some kind of server app which serves you content and registers with eureka.

Related