https://github.com/daggerok/java-mp-helidon-example
Helidon! Yet another MicroProfile implementation!
https://github.com/daggerok/java-mp-helidon-example
helidon helidon-example helidon-framework helidon-microservice helidon-mp-test helidon-webserver jakartaee maven micro-profile microprofile microprofile-config microprofile-demo microprofile-example microprofile-examples microprofile-health mp
Last synced: about 1 month ago
JSON representation
Helidon! Yet another MicroProfile implementation!
- Host: GitHub
- URL: https://github.com/daggerok/java-mp-helidon-example
- Owner: daggerok
- Created: 2019-08-24T00:25:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-24T15:26:55.000Z (almost 7 years ago)
- Last Synced: 2025-01-10T00:44:58.768Z (over 1 year ago)
- Topics: helidon, helidon-example, helidon-framework, helidon-microservice, helidon-mp-test, helidon-webserver, jakartaee, maven, micro-profile, microprofile, microprofile-config, microprofile-demo, microprofile-example, microprofile-examples, microprofile-health, mp
- Language: Java
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Helidon MicroProfile [](https://travis-ci.org/daggerok/java-mp-helidon-example)
This example implements a simple Hello World REST service using MicroProfile
## Run using maven
```bash
./mvnw exec:java
http :8080/greet/health
http :8080/greet/metrics
http :8080/greet
http :8080/greet/max
http put :8080/greet/greeting greeting=Привед
http :8080/greet/Максимко
```
## Build and run jar
```bash
./mvnw package
ava -jar ./target/*.jar
http :8080/greet
http :8080/greet/max
http put :8080/greet/greeting greeting=Привед
http :8080/greet/Максимко
```
## Build and run docker
```bash
docker build -t helidon-quickstart-mp .
docker run --rm -d -p 8080:8080 helidon-quickstart-mp:latest
http :8080/greet
http :8080/greet/max
http put :8080/greet/greeting greeting=Привед
http :8080/greet/Максимко
```
## Check versions update
```bash
./mvnw versions:display-property-updates
```
## Generate maven project
```bash
mvn archetype:generate -DinteractiveMode=false \ 24:00
-DarchetypeGroupId=io.helidon.archetypes \
-DarchetypeArtifactId=helidon-quickstart-mp \
-DarchetypeVersion=1.2.0 \
-DgroupId=com.github.daggerok.helidon \
-DartifactId=java-mp-helidon-example \
-Dpackage=com.github.daggerok.helidon
cd java-mp-helidon-example
mvn -N io.takari:maven:0.7.6:wrapper -Dmaven=3.6.1
./mvnw
```
links:
* [Helidon MicroProfile](https://helidon.io/docs/latest/#/guides/03_quickstart-mp)