{"id":26022837,"url":"https://github.com/junnishimura/clean-architecture-with-go","last_synced_at":"2026-04-21T19:04:14.208Z","repository":{"id":214114825,"uuid":"689299505","full_name":"JunNishimura/clean-architecture-with-go","owner":"JunNishimura","description":"Simple CRUD application built on Clean-Architecture","archived":false,"fork":false,"pushed_at":"2025-02-10T14:39:24.000Z","size":370,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T15:34:07.734Z","etag":null,"topics":["clean-architecture","clean-architecture-boilerplate","crud-application","golang","sample"],"latest_commit_sha":null,"homepage":"","language":"Go","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/JunNishimura.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":"2023-09-09T11:31:43.000Z","updated_at":"2025-02-10T14:39:21.000Z","dependencies_parsed_at":"2024-12-16T15:33:33.599Z","dependency_job_id":"d4fc017a-4db3-4b85-a2fd-1c8ebd939337","html_url":"https://github.com/JunNishimura/clean-architecture-with-go","commit_stats":null,"previous_names":["junnishimura/clean-architecture-with-go"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunNishimura%2Fclean-architecture-with-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunNishimura%2Fclean-architecture-with-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunNishimura%2Fclean-architecture-with-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunNishimura%2Fclean-architecture-with-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JunNishimura","download_url":"https://codeload.github.com/JunNishimura/clean-architecture-with-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242194209,"owners_count":20087530,"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-architecture-boilerplate","crud-application","golang","sample"],"created_at":"2025-03-06T10:37:07.675Z","updated_at":"2026-04-21T19:04:14.165Z","avatar_url":"https://github.com/JunNishimura.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Template project of Clean-Architecture\nThis is a simple CRUD application build on a Clean-Architecture written in Golang.\n\n## :triangular_flag_on_post: DEMO\n### 1. use Docker to set up an environment to run the application\n```bash\n\u003e make init\n\u003e make up \n```\n### 2. Call API by curl command\n#### create\n```bash\n\u003e curl -i -XPOST -d '{\"title\": \"test\", \"body\": \"this is a test article\"}' localhost:8080/articles\n```\n\n#### read\n```bash\n\u003e curl -i -XGET localhost:8080/articles\n\u003e curl -i -XGET localhost:8080/articles/1\n```\n\n#### update\n```bash\n\u003e curl -i -XPUT -d '{\"title\": \"updated title\", \"body\": \"this article is updated\"}' localhost:8080/articles/1\n```\n\n#### delete\n```bash\n\u003e curl -i -XDELETE localhost:8080/articles/1\n```\n\n## :book: Explanation\n![cleanarchitecture](https://github.com/JunNishimura/clean-architecture-with-go/assets/28744711/d72261cd-ee16-4d62-9cdd-3ccae600eb0f)\n\n| layer | directory |\n| ---- | ---- |\n| Enterprise Business Rules | [entities](https://github.com/JunNishimura/clean-architecture-with-go/tree/main/entities) |\n| Application Business Rules | [usecase](https://github.com/JunNishimura/clean-architecture-with-go/tree/main/usecase) |\n| Interface Adapters | [adapter](https://github.com/JunNishimura/clean-architecture-with-go/tree/main/adapter) |\n| Frameworks \u0026 Drivers | [driver](https://github.com/JunNishimura/clean-architecture-with-go/tree/main/driver) |\n\n### Enterprise Business Rules\nCore business rules are implemented in this layer.\n\n### Application Business Rules\nBy describing the business logic API, this layer expresses what this software will achieve.\n\n### Interface Adapters \nThis layer describes the input(controller), output(presenter) and data presistence process(gateway).\n\n### Frameworks \u0026 Drivers\nThis layer describes establishing DB connections, configuring routing and using the framework.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunnishimura%2Fclean-architecture-with-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunnishimura%2Fclean-architecture-with-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunnishimura%2Fclean-architecture-with-go/lists"}