An open API service indexing awesome lists of open source software.

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!

Awesome Lists containing this project

README

          

# Helidon MicroProfile [![Build Status](https://travis-ci.org/daggerok/java-mp-helidon-example.svg?branch=master)](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)