Difference between revisions of "Micronaut"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
https://dzone.com/articles/micronaut-build-for-next-wave-of-microservices-amp |
https://dzone.com/articles/micronaut-build-for-next-wave-of-microservices-amp |
||
+ | |||
+ | =Getting started= |
||
+ | |||
+ | Create a Micronaut app with https://micronaut.io/launch/ : choose Maven and the following features : data-jpa, graalvm, h2, hibernate-jpa, openapi |
||
+ | |||
+ | |||
+ | Build the app |
||
+ | <pre> |
||
+ | gunzip myapp.zip |
||
+ | cd myapp |
||
+ | ./mvnw package |
||
+ | </pre> |
||
+ | |||
+ | |||
+ | For skipping the tests |
||
+ | <pre> |
||
+ | ./mvnw package -DskipTests |
||
+ | </pre> |
||
+ | |||
+ | Build the app |
||
+ | <pre> |
||
+ | ./mvnw exec:exec |
||
+ | </pre> |
||
+ | |||
+ | Open the browser http://localhost:8080/ |
||
+ | |||
+ | |||
+ | Build the container |
||
+ | <pre> |
||
+ | ./mvnw TBC |
||
+ | </pre> |
||
+ | |||
+ | |||
+ | Run the container |
||
+ | <pre> |
||
+ | docker TBC |
||
+ | </pre> |
Revision as of 08:58, 5 October 2020
https://micronaut.io/documentation.html
https://dzone.com/articles/micronaut-build-for-next-wave-of-microservices-amp
Getting started
Create a Micronaut app with https://micronaut.io/launch/ : choose Maven and the following features : data-jpa, graalvm, h2, hibernate-jpa, openapi
Build the app
gunzip myapp.zip cd myapp ./mvnw package
For skipping the tests
./mvnw package -DskipTests
Build the app
./mvnw exec:exec
Open the browser http://localhost:8080/
Build the container
./mvnw TBC
Run the container
docker TBC