Let's generate our second microservice application (notification service) in the e-commerce-app folder. Create a new folder where you will keep the microservices application. Let's name the folder notification. Go into the directory and start creating the application by running jhipster.
The first question we are asked is to select the type of application we would like to create. We have to choose Microservice application and then click Enter:
![](assets/178c818e-593f-495b-9e30-6c70f754d4c1.png)
Then, we will select the default application name, notification:
![](assets/54fbf7a7-c148-41ba-8002-1be2d6173916.png)
Then, we will select the port for the application. Since we have selected 8080 for the monolithic application and 8081 for the invoice service, we will use port 8082 for the notification service:
![](assets/1ac1b9cd-bb3e-41d8-b3d2-1265b8987630.png)
For the next three questions, we will use the same options as we did previously:
![](assets/d475c013-8d0b-43fc-91f5-c874a3d462c6.png)
Then, we will select MongoDB as the database. After selecting MongoDB, JHipster will now ask for the different types of database you would like to use for the development and production servers. We will use MongoDB as both the development and production database:
![](assets/ccad6fc7-b2c4-454d-bd26-75100bde78b0.png)
For the remaining questions, we will select options that are similar to what we chose for the invoice service:
![](assets/546e532b-012d-4490-851d-0b35940b89e0.png)
The server is generated successfully:
![](assets/290c5027-31e8-4cc1-a49d-003da91c9138.png)
Our microservice application is generated. JHipster will automatically commit the generated files to Git. If you wish to do this step yourself, you can do so by passing the skip-git flag during execution, for example, jhipster --skip-git, and executing the steps manually as follows:
> git init
> git add --all
> git commit -am "generated notification microservice application"