{"id":21424749,"url":"https://github.com/hidayathamir/go-user","last_synced_at":"2026-05-17T13:11:14.032Z","repository":{"id":226642436,"uuid":"769145211","full_name":"Hidayathamir/go-user","owner":"Hidayathamir","description":"Golang microservice template. Clean Architecture, HTTP and GRPC Example, isolation integration tests, isolation unit tests, and database connection pooling.","archived":false,"fork":false,"pushed_at":"2024-03-25T22:19:56.000Z","size":214,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T07:14:55.025Z","etag":null,"topics":["clean-architecture","clean-code","go","golang","grpc","integration-testing","microservice","repository-pattern","rest-api","unit-testing"],"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/Hidayathamir.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":"2024-03-08T12:43:50.000Z","updated_at":"2024-03-23T08:03:06.000Z","dependencies_parsed_at":"2024-06-21T07:23:27.540Z","dependency_job_id":"06a0511e-fbcc-4157-88c0-7f80374fb8a2","html_url":"https://github.com/Hidayathamir/go-user","commit_stats":null,"previous_names":["hidayathamir/go-user"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hidayathamir%2Fgo-user","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hidayathamir%2Fgo-user/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hidayathamir%2Fgo-user/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hidayathamir%2Fgo-user/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hidayathamir","download_url":"https://codeload.github.com/Hidayathamir/go-user/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933376,"owners_count":20370988,"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":["clean-architecture","clean-code","go","golang","grpc","integration-testing","microservice","repository-pattern","rest-api","unit-testing"],"created_at":"2024-11-22T21:24:15.267Z","updated_at":"2026-05-17T13:11:09.005Z","avatar_url":"https://github.com/Hidayathamir.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-user\n\nGolang microservice template. Clean Architecture, HTTP and GRPC Example, isolation integration tests, isolation unit tests, and database connection pooling.\n\n# Features\n\n- [x] Clean architecture implementation.\n  - [x] Controller, usecase, repository layer separation.\n- [x] HTTP and GRPC example in controller layer.\n- [x] Isolation integration tests using containers.\n- [x] Isolation unit tests with mock support.\n- [x] Database connection pooling.\n\n# Code structure\n\n```\n├── config/             contains the application configuration.\n├── internal/\n│   ├── app/            contains the application starter.\n│   ├── controller/     contains the presentation layer and handles incoming requests from clients.\n│   │   ├── http/\n│   │   ├── grpc/\n│   ├── usecase/        contains the application business layer.\n│   ├── repo/           contains the data access layer.\n│   ├── entity/         contains the domain model.\n├── go.mod\n├── go.sum\n├── main.go\n├── README.md\n```\n\nFor presentation layer: Some people call it controller (in our case), delivery, transport, or handler.\n\nFor business layer: Some people call it usecase (in our case), service, domain, or application.\n\nFor data access layer: Some people call it repo/repository (in our case), or persistence.\n\n# Get Started\n\n## Run application\n\nRun postgres container.\n\n```\nmake compose-up-postgres\n```\n\nRun go app.\n\n```\nmake go-run\n```\n\n\n## Run test\n\nTest can be without the need to run the application.\n\nRun test integration.\n\n```\nmake go-test-integration\n```\n\nRun test unit.\n\n```\nmake go-test-unit\n```\n\n## Run for deployment\n\nFor deployment. Run postgres container also build and run go app container.\n\n```\nmake deploy\n```\n\n## Other command\n\nSee `Makefile`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhidayathamir%2Fgo-user","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhidayathamir%2Fgo-user","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhidayathamir%2Fgo-user/lists"}