Running invoice and notification applications locally

We have started the gateway and the registry services. We can then go to our invoice and notification application folders and then run them locally:

> cd invoice
> ./gradlew

Open another terminal and run the following command:

> cd notification
> ./gradlew

This will run them in 8081 and 8082 ports respectively:

Upon starting the application, it will also try to connect to JHipster Registry and register itself. You can watch for the preceding message once your server has started, to make sure that it is connected to JHipster Registry. 

You can alternatively test this via your Gateway application. Log in to your Gateway application and then navigate to Administration | Gateway:

Here, you can see the two microservice applications, invoice and notification, are booted up and they are available at their respective URLs.

You can also check the JHipster Registry service to list the registered instances:

Similarly, all the other pages in JHipster Registry will start to show the invoice and notification as one of the instances, and we can get their health, configuration, logs, and metrics right from JHipster Registry.

If you have followed along with the book, this will be the directory structure you will have: