{"id":15988696,"url":"https://github.com/michael-simons/helidon-test","last_synced_at":"2025-04-04T22:23:10.755Z","repository":{"id":139304120,"uuid":"197424350","full_name":"michael-simons/helidon-test","owner":"michael-simons","description":null,"archived":false,"fork":false,"pushed_at":"2019-07-17T16:19:17.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T06:49:10.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michael-simons.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-17T16:19:07.000Z","updated_at":"2019-07-17T16:19:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"d389ace6-bccb-4576-9510-91aa3023330f","html_url":"https://github.com/michael-simons/helidon-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-simons%2Fhelidon-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-simons%2Fhelidon-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-simons%2Fhelidon-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-simons%2Fhelidon-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michael-simons","download_url":"https://codeload.github.com/michael-simons/helidon-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256805,"owners_count":20909361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T04:20:49.482Z","updated_at":"2025-04-04T22:23:10.740Z","avatar_url":"https://github.com/michael-simons.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Helidon Quickstart SE Example\n\nThis project implements a simple Hello World REST service using Helidon SE.\n\n## Prerequisites\n\n1. Maven 3.5 or newer\n2. Java SE 8 or newer\n3. Docker 17 or newer to build and run docker images\n4. Kubernetes minikube v0.24 or newer to deploy to Kubernetes (or access to a K8s 1.7.4 or newer cluster)\n5. Kubectl 1.7.4 or newer to deploy to Kubernetes\n\nVerify prerequisites\n```\njava -version\nmvn --version\ndocker --version\nminikube version\nkubectl version --short\n```\n\n## Build\n\n```\nmvn package\n```\n\n## Start the application\n\n```\njava -jar target/helidon-quickstart-se.jar\n```\n\n## Exercise the application\n\n```\ncurl -X GET http://localhost:8080/greet\n{\"message\":\"Hello World!\"}\n\ncurl -X GET http://localhost:8080/greet/Joe\n{\"message\":\"Hello Joe!\"}\n\ncurl -X PUT -H \"Content-Type: application/json\" -d '{\"greeting\" : \"Hola\"}' http://localhost:8080/greet/greeting\n\ncurl -X GET http://localhost:8080/greet/Jose\n{\"message\":\"Hola Jose!\"}\n```\n\n## Try health and metrics\n\n```\ncurl -s -X GET http://localhost:8080/health\n{\"outcome\":\"UP\",...\n. . .\n\n# Prometheus Format\ncurl -s -X GET http://localhost:8080/metrics\n# TYPE base:gc_g1_young_generation_count gauge\n. . .\n\n# JSON Format\ncurl -H 'Accept: application/json' -X GET http://localhost:8080/metrics\n{\"base\":...\n. . .\n\n```\n\n## Build the Docker Image\n\n```\ndocker build -t helidon-quickstart-se .\n```\n\n## Start the application with Docker\n\n```\ndocker run --rm -p 8080:8080 helidon-quickstart-se:latest\n```\n\nExercise the application as described above\n\n## Deploy the application to Kubernetes\n\n```\nkubectl cluster-info                # Verify which cluster\nkubectl get pods                    # Verify connectivity to cluster\nkubectl create -f app.yaml   # Deply application\nkubectl get service helidon-quickstart-se  # Get service info\n```\n\n## Native image with GraalVM\n\nGraalVM allows you to compile your programs ahead-of-time into a native\n executable. See https://www.graalvm.org/docs/reference-manual/aot-compilation/\n for more information.\n\nYou can build a native executable in 2 different ways:\n* With a local installation of GraalVM\n* Using Docker\n\n### Local build\n\nDownload Graal VM at https://github.com/oracle/graal/releases, the version\n currently supported for Helidon is `19.0.0`.\n\n```\n# Setup the environment\nexport GRAALVM_HOME=/path\n# build the native executable\nmvn package -Pnative-image\n```\n\nYou can also put the Graal VM `bin` directory in your PATH, or pass\n `-DgraalVMHome=/path` to the Maven command.\n\nSee https://github.com/oracle/helidon-build-tools/tree/master/helidon-maven-plugin\n for more information.\n\nStart the application:\n\n```\n./target/helidon-quickstart-se\n```\n\n### Multi-stage Docker build\n\nBuild the \"native\" Docker Image\n\n```\ndocker build -t helidon-quickstart-se-native -f Dockerfile.native .\n```\n\nStart the application:\n\n```\ndocker run --rm -p 8080:8080 helidon-quickstart-se-native:latest\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-simons%2Fhelidon-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichael-simons%2Fhelidon-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-simons%2Fhelidon-test/lists"}