{"id":30313877,"url":"https://github.com/saefullohmaslul/golang-example","last_synced_at":"2025-08-17T18:52:30.147Z","repository":{"id":54334232,"uuid":"259225090","full_name":"saefullohmaslul/golang-example","owner":"saefullohmaslul","description":":zap: Golang Clean Boilerplate","archived":false,"fork":false,"pushed_at":"2023-03-07T02:46:20.000Z","size":383,"stargazers_count":19,"open_issues_count":5,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-15T00:33:17.123Z","etag":null,"topics":["docker","docker-compose","golang","rest-api","test","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/saefullohmaslul.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":"2020-04-27T06:26:56.000Z","updated_at":"2024-04-07T06:23:06.000Z","dependencies_parsed_at":"2024-06-19T01:42:20.408Z","dependency_job_id":null,"html_url":"https://github.com/saefullohmaslul/golang-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/saefullohmaslul/golang-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saefullohmaslul%2Fgolang-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saefullohmaslul%2Fgolang-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saefullohmaslul%2Fgolang-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saefullohmaslul%2Fgolang-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saefullohmaslul","download_url":"https://codeload.github.com/saefullohmaslul/golang-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saefullohmaslul%2Fgolang-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270892209,"owners_count":24663543,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["docker","docker-compose","golang","rest-api","test","testing"],"created_at":"2025-08-17T18:52:27.349Z","updated_at":"2025-08-17T18:52:30.085Z","avatar_url":"https://github.com/saefullohmaslul.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/saefullohmaslul/golang-example\" target=\"blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/nielsing/yar/master/images/yargopher3.png\" width=\"200\" alt=\"Go\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eGolang Clean Boilerplate\u003c/h1\u003e\n\n## Requirements\n\n- [Docker](https://www.docker.com/)\n- [Docker Compose](https://docs.docker.com/compose/)\n\n## Feature\n\n- Clean code\n- Docker and docker-compose\n- ORM with gorm\n- Unit testing\n\n## Setup\n\n### Building and running the dockerized codebase\n\n1. Clone the repository.\n\n1. Build all containers using `docker-compose build --no-cache`.\n\n1. Run all containers using `docker-compose up`.\n\n   **Tips**:\n\n   - Use `--build` in `docker-compose` to force update the docker image created, e.g. `docker-compose up --build`\n\n1. The docker and docker compose will setup all requirements on the fly, and please provide coffee as this may take a few minutes.\n\n1. If have finished it, that means you can use this server with all databases and data ready to use.\n### Cleaning up\n\n1. When you're done, `Ctrl-C` in the main `docker-compose up` window to terminate the running processes.\n\n1. Run `docker-compose down` to stop and remove containers.\n\n## Develop By\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/saefullohmaslul\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/20754023\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSaefulloh Maslul\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\n## License\n\nCopyright (c) 2021 Saefulloh Maslul\nAll rights reserved.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaefullohmaslul%2Fgolang-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaefullohmaslul%2Fgolang-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaefullohmaslul%2Fgolang-example/lists"}