{"id":15685863,"url":"https://github.com/jxlwqq/http-echo","last_synced_at":"2025-05-07T18:09:14.033Z","repository":{"id":64304664,"uuid":"422457745","full_name":"jxlwqq/http-echo","owner":"jxlwqq","description":"HTTP Echo is a go web server that echos back the arguments given to it. Multi-platform supported.","archived":false,"fork":false,"pushed_at":"2022-05-10T06:00:20.000Z","size":34,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T18:03:58.313Z","etag":null,"topics":["docker","docker-buildx","go-web","istio","kubernetes","web-server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jxlwqq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-29T05:56:12.000Z","updated_at":"2023-04-04T04:54:23.000Z","dependencies_parsed_at":"2023-01-15T10:15:47.609Z","dependency_job_id":null,"html_url":"https://github.com/jxlwqq/http-echo","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxlwqq%2Fhttp-echo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxlwqq%2Fhttp-echo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxlwqq%2Fhttp-echo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxlwqq%2Fhttp-echo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jxlwqq","download_url":"https://codeload.github.com/jxlwqq/http-echo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252931532,"owners_count":21827111,"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":["docker","docker-buildx","go-web","istio","kubernetes","web-server"],"created_at":"2024-10-03T17:32:10.105Z","updated_at":"2025-05-07T18:09:13.968Z","avatar_url":"https://github.com/jxlwqq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-echo\n\n[![Testing](https://github.com/jxlwqq/http-echo/actions/workflows/testing.yml/badge.svg)](https://github.com/jxlwqq/http-echo/actions/workflows/testing.yml) \n[![Docker Pulls](https://img.shields.io/docker/pulls/jxlwqq/http-echo)](https://hub.docker.com/r/jxlwqq/http-echo)\n\nHTTP Echo is a go web server that echos back the arguments given to it. This is especially useful for demos or a more extensive \"hello world\" application in Docker or Kubernetes.\n\nInspired by [hashicorp/http-echo](https://github.com/hashicorp/http-echo). Building multi-architecture docker images with [Docker Buildx](https://docs.docker.com/buildx/working-with-buildx/). Apple chip/arm64's users cheers :).\n\n**NOTE**: There are some differences between [jxlwqq/http-echo](https://github.com/jxlwqq/http-echo) and [hashicorp/http-echo](https://github.com/hashicorp/http-echo):\n\n| Difference |  [jxlwqq/http-echo](https://github.com/jxlwqq/http-echo) |  [hashicorp/http-echo](https://github.com/hashicorp/http-echo)|\n|---|---|---|\n| default expose port | **:8080** | :5678 |\n| args | **\"--text=hello**\" | \"-text=hello\" |\n| build with | gin, pflag | net/http, flag |\n| multi-platform support | yes | no |\n\n### Local\nThe default port is 8080, but this is configurable via the `--addr` flag:\n\n```shell\n# go build\nmake go-build\n# start the server\n./http-echo --text=\"hello world\" --addr=:8080\n```\n\nThen visit http://localhost:8080/ in your browser.\n\n### Docker\n\nTo run the server in Docker:\n\n```shell\n# docker pull\ndocker pull jxlwqq/http-echo:latest\n# docker run\ndocker run -p 8080:8080 jxlwqq/http-echo:latest --text=\"hello world\"\n```\n\nThen visit http://localhost:8080/ in your browser.\n\n### Kubernetes\n\nTo run the server in Kubernetes:\n\n```yaml\nkubectl apply -f samples/kubernetes/hello-world/deployment.yaml\nkubectl apply -f samples/kubernetes/hello-world/service.yaml\nkubectl port-forward services/http-echo 8080:8080\n```\n\nThen visit http://localhost:8080/ in your browser.\n\n\n### Istio\n\nTo run the server with Istio in Kubernetes:\n\n```yaml\nkubectl apply -f samples/istio/http-echo/echo-v1-deployment.yaml\nkubectl apply -f samples/istio/http-echo/echo-v2-deployment.yaml\nkubectl apply -f samples/istio/http-echo/echo-service.yaml\n\nkubectl apply -f samples/istio/http-echo/istio-gateway.yaml\nkubectl apply -f samples/istio/http-echo/istio-virtual-service.yaml\nkubectl apply -f samples/istio/http-echo/istio-destination-rule.yaml\n```\n\nThen visit http://localhost in your browser.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjxlwqq%2Fhttp-echo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjxlwqq%2Fhttp-echo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjxlwqq%2Fhttp-echo/lists"}