{"id":26956715,"url":"https://github.com/nikoheikkila/golang-docker-api","last_synced_at":"2025-07-01T11:08:41.512Z","repository":{"id":91081987,"uuid":"402762377","full_name":"nikoheikkila/golang-docker-api","owner":"nikoheikkila","description":"Example project showing how to develop and package a Golang REST API with Docker.","archived":false,"fork":false,"pushed_at":"2021-10-26T11:28:23.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T03:33:06.580Z","etag":null,"topics":["docker","docker-compose","golang","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/nikoheikkila.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-03T12:27:13.000Z","updated_at":"2021-10-26T11:28:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4055f02-a369-4e11-9a3b-4524a5ff3889","html_url":"https://github.com/nikoheikkila/golang-docker-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nikoheikkila/golang-docker-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoheikkila%2Fgolang-docker-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoheikkila%2Fgolang-docker-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoheikkila%2Fgolang-docker-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoheikkila%2Fgolang-docker-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikoheikkila","download_url":"https://codeload.github.com/nikoheikkila/golang-docker-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoheikkila%2Fgolang-docker-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262950349,"owners_count":23389644,"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-compose","golang","rest-api"],"created_at":"2025-04-03T03:31:59.560Z","updated_at":"2025-07-01T11:08:41.492Z","avatar_url":"https://github.com/nikoheikkila.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang REST API + Docker Example 🐭🐳📦\n\nThis is a brief example project showing how to package a REST API application as a Docker image running a static binary.\n\n## Usage\n\n### Docker Compose\n\nBuild the image and launch a container.\n\n```sh\ndocker-compose up --build -d\ndocker-compose logs -f\n```\n\nThen hit it with requests using your favourite tool and follow the log output.\n\n```sh\ncurl -x GET http://localhost:3000/users | jq\n```\n\n### GitHub Codespaces\n\n1. Open this repository in [github.com](https://github.com/nikoheikkila/golang-docker-api)\n2. Press \u003ckbd\u003e.\u003c/kbd\u003e to launch the GitHub web editor\n3. From the bottom-left corner, choose _Continue working on_ and choose _Create New Codespace_\n4. Wait for the build to finish, and run `make start` to start the server inside the running container, or `make build` to compile\n\n### VS Code Dev Container\n\n1. Open the repository in VS Code\n2. From the remote containers menu in the bottom-left corner, choose _Reopen in container_\n3. Repeat step #4 from above\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikoheikkila%2Fgolang-docker-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikoheikkila%2Fgolang-docker-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikoheikkila%2Fgolang-docker-api/lists"}