Search code examples
jakarta-eenetbeansmicroservicespayaramicroprofile

Running start.microprofile.io demo on Netbeans 11.1


I am new in the Microservices world. I have read a lot o materials but still not able to run my first app. So I have generated a demo from https://start.microprofile.io with the following configuration:

MicroProfile Version: MP2.1 MicroProfile Server : Payara Micro All 8 specifications.

I was able to import the demo in netbeans 11.1 and I have installed Payara full 191.

My question is: what is the next step? What should I do to run the demo? Any help to get more closer to the world of Microservices with Eclipse MicroProfile?


Solution

  • start.microprofile.io will have created a Maven project for you.

    Within the root directory of the project, there should be a readme.md file that explains what you have created.

    You can build the project with mvn clean package and then run it with java -jar target/demo-microbundle.jar (the name demo may change depending on your project name).

    You can then access the sample app by going to http://localhost:8080/index.html

    Since this is a microprofile application, you do not necessarily need to deploy it to Payara full. You can run this application as a standalone jar.