Difference between revisions of "Micronaut"
Jump to navigation
Jump to search
(Created page with " https://micronaut.io/documentation.html") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
https://micronaut.io/documentation.html |
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 |
||
+ | |||
+ | |||
+ | Unzip the generated app |
||
+ | <pre> |
||
+ | gunzip myapp.zip |
||
+ | cd myapp |
||
+ | </pre> |
||
+ | |||
+ | Add the POJO, Service and Resource classes ([for instance https://guides.micronaut.io/micronaut-creating-first-graal-app/guide/index.html]) into src/main/fr/polytech/myapp/conference |
||
+ | |||
+ | Build the app |
||
+ | <pre> |
||
+ | ./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/conferences/ |
||
+ | |||
+ | Build the container |
||
+ | <pre> |
||
+ | ./mvnw TBC |
||
+ | </pre> |
||
+ | |||
+ | |||
+ | Run the container |
||
+ | <pre> |
||
+ | docker TBC |
||
+ | </pre> |
||
+ | |||
+ | =More= |
||
+ | * [https://github.com/jhipster/generator-jhipster-micronaut Micronaut blueprint of JHipster] |
Latest revision as of 15:16, 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
Unzip the generated app
gunzip myapp.zip cd myapp
Add the POJO, Service and Resource classes ([for instance https://guides.micronaut.io/micronaut-creating-first-graal-app/guide/index.html]) into src/main/fr/polytech/myapp/conference
Build the app
./mvnw package
For skipping the tests
./mvnw package -DskipTests
Build the app
./mvnw exec:exec
Open the browser http://localhost:8080/conferences/
Build the container
./mvnw TBC
Run the container
docker TBC