Files
helidon/examples/translator-app
Joe DiPol de805c92ea Fixes from 1.3.0 release branch and version update (#1027)
* Fix release.sh update-version to work with new parent pom hierarchy

* Update CHANGELOG for 1.3.0 release

* fix release script to deal with maven timestamps

* Update graal tests to work with new parent pom hierarchy

* Update release.sh to set helidon.version correctly

* Move gpg plugin management and execution for the release profile under parent/pom.xml
Move nexus plugin extension for the release profile under parent/pom.xml
Move the staging profile under parent/pom.xml
Added missing snapshot repository under distribution management in parent/pom.xml

* Fixes #1024 - Bad build time subsitution for bare archetypes pom
Fixes #1025 - archetype-packaging plugin needs to be declared as an extension
Reverting dependencies on helidon-metrics2 back helidon-metrics for all SE examples
Removing helidon-metrics2 from the BOM pom to prevent end-user from using it
Update examples/grpc/metrics README to fix test step.

* Update version to 1.3.1-SNAPSHOT
2019-09-13 13:17:44 -07:00
..
2019-09-12 15:48:09 -07:00

Translator Example Application

This application demonstrates a pseudo application composed of two microservices implemented with Helidon SE.

Start Zipkin

With Docker:

docker run --name zipkin -d -p 9411:9411 openzipkin/zipkin

With Java 8+:

curl -sSL https://zipkin.io/quickstart.sh | bash -s
java -jar zipkin.jar

With Kubernetes:

kubectl apply -f ../k8s/ingress.yaml -f ../k8s/zipkin.yaml

Build and run

With Docker:

docker build -t helidon-examples-translator-backend backend/
docker build -t helidon-examples--translator-frontend frontend/
docker run --rm -d -p 9080:9080 \
    --link zipkin \
    --name helidon-examples-translator-backend \
     helidon-examples-translator-backend:latest
docker run --rm -d -p 8080:8080 \
    --link zipkin \
    --link helidon-examples-translator-backend \
    --name helidon-examples-translator-frontend \
     helidon-examples-translator-frontend:latest

With Java 8+:

mvn package
java -jar backend/target/helidon-examples-translator-backend.jar &
java -jar frontend/target/helidon-examples-translator-frontend.jar

Try the endpoint:

curl "http://localhost:8080?q=cloud&lang=czech"
curl "http://localhost:8080?q=cloud&lang=french"
curl "http://localhost:8080?q=cloud&lang=italian"

Then check out the traces at http://localhost:9411.

Run with Kubernetes (docker for desktop)

docker build -t helidon-examples-translator-backend backend/
docker build -t helidon-examples-translator-frontend frontend/
kubectl apply -f backend/app.yaml -f frontend/app.yaml

Try the endpoint:

curl "http://localhost/translator?q=cloud&lang=czech"
curl "http://localhost/translator?q=cloud&lang=french"
curl "http://localhost/translator?q=cloud&lang=italian"

Then check out the traces at http://localhost/zipkin.

Stop the docker containers:

docker stop zipkin \
    helidon-examples-translator-backend \
    helidon-examples-translator-frontend

Delete the Kubernetes resources:

kubectl delete -f backend/app.yaml -f frontend/app.yaml