{"id":34135996,"url":"https://github.com/agalitsyn/go-app","last_synced_at":"2026-03-10T08:01:31.493Z","repository":{"id":57693486,"uuid":"59733898","full_name":"agalitsyn/go-app","owner":"agalitsyn","description":"Go applications in one repository","archived":false,"fork":false,"pushed_at":"2024-03-12T15:16:55.000Z","size":3226,"stargazers_count":20,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-17T13:33:03.563Z","etag":null,"topics":["api-rest","go"],"latest_commit_sha":null,"homepage":"","language":"Go","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/agalitsyn.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":"2016-05-26T08:35:10.000Z","updated_at":"2024-11-25T09:42:01.000Z","dependencies_parsed_at":"2024-06-20T11:56:43.844Z","dependency_job_id":"e0036e36-95d8-4382-9027-ff1b6bb1d578","html_url":"https://github.com/agalitsyn/go-app","commit_stats":{"total_commits":60,"total_committers":5,"mean_commits":12.0,"dds":0.3833333333333333,"last_synced_commit":"8b1f8a55a3e8952cb3e28b6bb377ca1eefa815d4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agalitsyn/go-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agalitsyn%2Fgo-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agalitsyn%2Fgo-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agalitsyn%2Fgo-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agalitsyn%2Fgo-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agalitsyn","download_url":"https://codeload.github.com/agalitsyn/go-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agalitsyn%2Fgo-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30327547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: 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":["api-rest","go"],"created_at":"2025-12-15T01:59:06.026Z","updated_at":"2026-03-10T08:01:31.486Z","avatar_url":"https://github.com/agalitsyn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-app\n\n* Ready for creating Go applications in one repository.\n* Includes example of RESTful API service, but you can add more service types, for example workers, consumers, etc.\n* Go 1.16 + docker + docker-compose - easy setup on own server. No CI server required, just `make docker-export` and `scp` to your server.\n\n## Repository structure\n\n* Structure supports multiple services:\n    * Each service has own directory in `cmd` folder for `main` function, which typically consists of dependencies and service start.\n    * Service logic with tests are in `internal/app`.\n* Shared packages are in `internal/pkg`.\n* Storage entities and interfaces are in `internal/storage`. Interfaces can have multiple implementations of storages types like `internal/storage/{rdb,memory,kv,object,document}`.\n* All applications build in one docker image for easy distribution, so you should define explicit `command` in `docker-compose` or in k8s files for each service.\n\n## Migrations\n\nThis template includes `PostgreSQL` connector, with [tern](https://github.com/jackc/tern) migrator. Check `migrations` folder.\n\n## Quickstart\n\n```bash\nmake docker-build\ndocker-compose up\nmake migrate\n\n# test it\ncurl -i -X POST localhost:8080/1.0/articles --data '{\"title\": \"New Book\", \"slug\": \"new-book\"}'\ncurl -i -X GET localhost:8080/1.0/articles\n```\n\n## Local development\n\n```bash\ncp .env.example .env.local\ndocker-compose up postgres\nmake migrate\nmake run\n```\n\n### Testing\n\n* Service tests with mocked storages are in `internal/app`.\n* Storage tests are in `internal/storage`.\n\nFor testing postgres storages run `docker-compose up postgres`. Can be skipped with `make test-short`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagalitsyn%2Fgo-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagalitsyn%2Fgo-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagalitsyn%2Fgo-app/lists"}