mirror of
https://github.com/jlengrand/helidon.git
synced 2026-03-10 08:21:17 +00:00
* Missing files from mp1 integration test. * Upgrade checkstyle to 8.29 and update plugin + fix issues.
TODO Demo Application
This application implements todomvc[http://todomvc.com] with two microservices implements with Helidon MP and Helidon SE.
HTTP proxy
If you want to run behind a proxy, you need to configure the config key
security.providers.google-login.proxy-host. You can do that by updating
frontend/src/main/resources/application.yaml and
backend/src/main/resources/application.yaml with the following content:
security:
providers:
- google-login:
proxy-host: "proxy.host"
Start Zipkin
With Docker:
docker run --name zipkin -d -p 9411:9411 openzipkin/zipkin
With Kubernetes:
kubectl apply -f ../k8s/ingress.yaml -f ../k8s/zipkin.yaml
Build and run
With Docker:
docker build -t helidon-examples-todo-cassandra cassandra/
docker build -t helidon-examples-todo-backend backend/
docker build -t helidon-examples-todo-frontend frontend/
docker run --rm -d -p 9042:9042 \
--link zipkin \
--name helidon-examples-todo-cassandra \
helidon-examples-todo-cassandra
docker run --rm -d -p 8854:8854 \
--link zipkin \
--link helidon-examples-todo-cassandra \
--name helidon-examples-todo-backend \
helidon-examples-todo-backend
docker run --rm -d -p 8080:8080 \
--link zipkin \
--link helidon-examples-todo-backend \
--name helidon-examples-todo-frontend \
helidon-examples-todo-frontend
Open http://localhost:8080 in your browser, add some TODO entries, then check out the traces at http://localhost:9411.
With Kubernetes (docker for desktop)
docker build -t helidon-examples-todo-cassandra cassandra/
docker build -t helidon-examples-todo-backend backend/
docker build -t helidon-examples-todo-frontend frontend/
kubectl apply -f cassandra.yaml -f backend/app.yaml -f frontend/app.yaml
Open http://localhost/todo/ in your browser, add some TODO entries, then check out the traces at http://localhost/zipkin.
Stop the docker containers:
docker stop zipkin \
helidon-examples-todo-backend \
helidon-examples-todo-frontend
Delete the Kubernetes resources:
kubectl delete \
-f ../k8s/ingress.yaml \
-f ../k8s/zipkin.yaml \
-f cassandra.yaml \
-f backend/app.yaml \
-f frontend/app.yaml