{"id":37178874,"url":"https://github.com/18f/golang-api-backend","last_synced_at":"2026-01-14T20:50:33.607Z","repository":{"id":139904743,"uuid":"216053406","full_name":"18F/golang-api-backend","owner":"18F","description":null,"archived":true,"fork":false,"pushed_at":"2019-10-18T15:23:20.000Z","size":4507,"stargazers_count":0,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-25T11:47:00.144Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/18F.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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-10-18T15:22:10.000Z","updated_at":"2023-01-28T16:05:19.000Z","dependencies_parsed_at":"2024-06-19T13:18:11.789Z","dependency_job_id":"00c63341-c80d-4df8-bd8f-b6c44be7d83f","html_url":"https://github.com/18F/golang-api-backend","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/18F/golang-api-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/18F%2Fgolang-api-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/18F%2Fgolang-api-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/18F%2Fgolang-api-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/18F%2Fgolang-api-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/18F","download_url":"https://codeload.github.com/18F/golang-api-backend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/18F%2Fgolang-api-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-14T20:50:32.843Z","updated_at":"2026-01-14T20:50:33.600Z","avatar_url":"https://github.com/18F.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hello-ampd\n\n[![Build Status][badge_ci]][5] [![Code Climate][badge_cc]][7] [![Go Report Card][badge_rc]][9] [![Codecov][badge_cov]][8] [![Known Vulnerabilities][badge_snyk]][6]\n\nBasic tutorial for the EPA Clean Air Markets Division to go through the process of creating a small web app, in the problem space of AMPD, with automated tests and deployment to cloud.gov.\n\nCurrently, `hello-ampd` is a very simple API backend, providing a \"Hello World\" style response to HTTP GET calls.\n\n## Development\n\n### Initial setup\n\n#### Dependencies\n\n- [git][1]\n- [docker][2]\n- [docker-compose][3]\n\nThis project uses [Docker][2] containers to provide a self-contained build and test environment, as well as to locally run the `hello-ampd` web service. These instructions assume some familiarity with the command-line (e.g., Windows Terminal under Windows 10, Terminal under macOS, etc.).\n\n#### Clone the repository\n\nClone the repository and `cd` into it:\n\n```shell\ngit clone https://github.com/18F/hello-ampd\ncd hello-ampd\n```\n\n#### Tests\n\nRun the initial setup and ensure that all tests pass locally:\n\n```shell\ndocker-compose run --rm api make\n```\n\n### Running a local server\n\nStart the web service:\n\n```shell\ndocker-compose up --abort-on-container-exit --build\n```\n\nLog messages will be printed to the console's `stdout`.\n\nOnce the `Starting hello-ampd` debug log message appears, a web browser can be directed to `http://localhost:8080` to access the web service.\n\n### Stopping and cleaning up the local server\n\n`Ctrl+C` will shutdown the server, if performed in the same console window as it was started. \n\nUsing a different console window — on the same host OS, from the `hello-ampd` project tree — the local server can be stopped and cleaned up with:\n```shell\ndocker-compose down\n```\n\n### Adding/updating Go packages\n\nWhenever the packages used by `hello-ampd` change, update the [Dep][4] files:\n\n```shell\ndocker-compose run --rm api dep ensure -no-vendor\ndocker-compose build\n```\n\nBe sure to commit the `dep`-generated updates to `src/Gopkg.toml` and `src/Gopkg.lock`.\n\n\n[badge_ci]: https://circleci.com/gh/18F/hello-ampd.svg?style=shield\n[badge_snyk]: https://user-images.githubusercontent.com/37100189/64040853-cb2bb580-cb12-11e9-9312-bbc63f2c3d2c.png\n[badge_cc]: https://codeclimate.com/github/18F/hello-ampd/badges/gpa.svg\n[badge_cov]: https://codecov.io/gh/18F/hello-ampd/branch/develop/graph/badge.svg\n[badge_rc]: https://goreportcard.com/badge/github.com/18F/hello-ampd\n[1]: https://git-scm.com/\n[2]: https://docker.com\n[3]: https://docs.docker.com/compose\n[4]: https://golang.github.io/dep/\n[5]: https://circleci.com/gh/18F/hello-ampd\n[6]: https://app.snyk.io/org/hello-ampd/projects\n[7]: https://codeclimate.com/github/18F/hello-ampd\n[8]: https://codecov.io/gh/18F/hello-ampd\n[9]: https://goreportcard.com/report/github.com/18F/hello-ampd\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F18f%2Fgolang-api-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F18f%2Fgolang-api-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F18f%2Fgolang-api-backend/lists"}