{"id":18045384,"url":"https://github.com/lance/quarkus-http","last_synced_at":"2025-04-05T03:41:55.013Z","repository":{"id":66679386,"uuid":"539579737","full_name":"lance/quarkus-http","owner":"lance","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-21T16:19:33.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T11:48:39.471Z","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/lance.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":"2022-09-21T16:19:12.000Z","updated_at":"2022-09-21T16:20:19.000Z","dependencies_parsed_at":"2023-04-13T11:03:47.132Z","dependency_job_id":null,"html_url":"https://github.com/lance/quarkus-http","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/lance%2Fquarkus-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fquarkus-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fquarkus-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fquarkus-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lance","download_url":"https://codeload.github.com/lance/quarkus-http/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284914,"owners_count":20913691,"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-30T18:13:01.656Z","updated_at":"2025-04-05T03:41:54.995Z","avatar_url":"https://github.com/lance.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Function project\n\nWelcome to your new Quarkus function project!\n\nThis sample project contains a single function: `functions.Function.function()`,\nthe function just returns its argument.\n\n## Local execution\nMake sure that `Java 11 SDK` is installed.\n\nTo start server locally run `./mvnw quarkus:dev`.\nThe command starts http server and automatically watches for changes of source code.\nIf source code changes the change will be propagated to running server. It also opens debugging port `5005`\nso debugger can be attached if needed.\n\nTo run test locally run `./mvnw test`.\n\n## The `func` CLI\n\nIt's recommended to set `FUNC_REGISTRY` environment variable.\n```shell script\n# replace ~/.bashrc by your shell rc file\n# replace docker.io/johndoe with your registry\nexport FUNC_REGISTRY=docker.io/johndoe\necho \"export FUNC_REGISTRY=docker.io/johndoe\" \u003e\u003e ~/.bashrc \n```\n\n### Building\n\nThis command builds OCI image for the function.\n\n```shell script\nfunc build\n```\n\nBy default, JVM build is used.\nTo enable native build set following enviromnet variables to `func.yaml`:\n```yaml\nbuildEnvs:\n- name: BP_NATIVE_IMAGE\n  value: \"true\"\n- name: BP_MAVEN_BUILT_ARTIFACT\n  value: func.yaml target/native-sources/*\n- name: BP_MAVEN_BUILD_ARGUMENTS\n  value: package -DskipTests=true -Dmaven.javadoc.skip=true -Dquarkus.package.type=native-sources\n- name: BP_NATIVE_IMAGE_BUILD_ARGUMENTS_FILE\n  value: native-image.args\n- name: BP_NATIVE_IMAGE_BUILT_ARTIFACT\n  value: '*-runner.jar'\n\n```\n\n### Running\n\nThis command runs the func locally in a container\nusing the image created above.\n```shell script\nfunc run\n```\n\n### Deploying\n\nThis commands will build and deploy the function into cluster.\n\n```shell script\nfunc deploy # also triggers build\n```\n\n## Function invocation\n\nDo not forget to set `URL` variable to the route of your function.\n\nYou get the route by following command.\n```shell script\nfunc info\n```\n\n### cURL\n\n```shell script\nURL=http://localhost:8080/\ncurl -v ${URL} \\\n  -H \"Content-Type:application/json\" \\\n  -d \"{\\\"message\\\": \\\"$(whoami)\\\"}\\\"\"\n# OR\nURL=\"http://localhost:8080/?message=$(whoami)\"\ncurl -v ${URL} \n```\n\n### HTTPie\n\n```shell script\nURL=http://localhost:8080/\nhttp -v ${URL} \\\n  message=$(whoami)\n# OR\nURL=\"http://localhost:8080/?message=$(whoami)\"\nhttp -v ${URL}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flance%2Fquarkus-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flance%2Fquarkus-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flance%2Fquarkus-http/lists"}