{"id":30668127,"url":"https://github.com/datumbrain/go-hex-arch-demo","last_synced_at":"2026-07-21T00:32:18.314Z","repository":{"id":312563999,"uuid":"884752505","full_name":"datumbrain/go-hex-arch-demo","owner":"datumbrain","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-07T10:49:27.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-31T16:04:12.872Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datumbrain.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-07T10:24:52.000Z","updated_at":"2024-11-07T10:55:31.000Z","dependencies_parsed_at":"2025-08-31T16:04:15.747Z","dependency_job_id":"5545b94b-5a1f-41df-ad94-4f99e94be4ea","html_url":"https://github.com/datumbrain/go-hex-arch-demo","commit_stats":null,"previous_names":["datumbrain/go-hex-arch-demo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/datumbrain/go-hex-arch-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datumbrain%2Fgo-hex-arch-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datumbrain%2Fgo-hex-arch-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datumbrain%2Fgo-hex-arch-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datumbrain%2Fgo-hex-arch-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datumbrain","download_url":"https://codeload.github.com/datumbrain/go-hex-arch-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datumbrain%2Fgo-hex-arch-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273051827,"owners_count":25037077,"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-31T02:00:09.071Z","response_time":79,"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":[],"created_at":"2025-08-31T23:09:27.346Z","updated_at":"2025-10-16T21:23:51.410Z","avatar_url":"https://github.com/datumbrain.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HexaShop\n\nHexaShop is a simple Golang application built to learn and implement hexagonal architecture. It includes APIs for managing users and products, demonstrating the core principles of domain-driven design and separation of concerns.\n\n## Features\n\n- User management API (CRUD operations)\n- Product management API (CRUD operations)\n- Demonstrates hexagonal Architecture (ports \u0026 adapters pattern)\n\n## Architecture Overview\n\nThis project uses the hexagonal architecture (also known as Ports and Adapters), which aims to create a more modular, loosely-coupled code structure. The business logic (core domain) is separated from the infrastructure (database, HTTP layer), making it easier to test and extend.\n\n## Pre-requisites\n\n- Must have installed `go 1.21.1` or latest.\n- Must have installed [task](https://taskfile.dev/installation/) command\n\n## How to Run\n\n- Run the following command to execute the application\n\n    ```bash\n    task run\n    ```\n\n## Project Structure\n\n```bash\n./\n├── cmd/\n│   └── app/\n│       └── main.go\n├── conf/\n│   └── conf.go\n├── internal/\n│   ├── adapter/\n│   │   ├── http/\n│   │   │   ├── api/\n│   │   │   │   ├── product.go\n│   │   │   │   └── user.go\n│   │   │   ├── rq/\n│   │   │   │   ├── product.go\n│   │   │   │   └── user.go\n│   │   │   └── router.go\n│   │   └── storage/\n│   │       ├── postgres/\n│   │       │   ├── migration/\n│   │       │   │   ├── 000001_init.down.sql\n│   │       │   │   └── 000001_init.up.sql\n│   │       │   ├── repo/\n│   │       │   │   ├── product.go\n│   │       │   │   └── user.go\n│   │       │   ├── schema/\n│   │       │   │   └── schema.sql\n│   │       │   ├── db.go\n│   │       │   └── migration.go\n│   │       └── redis/\n│   ├── core/\n│   │   ├── domain/\n│   │   │   ├── product.go\n│   │   │   └── user.go\n│   │   └── service/\n│   │       ├── product.go\n│   │       └── user.go\n│   └── port/\n│       ├── product.go\n│       └── user.go\n├── .env.sample\n├── .gitignore\n├── README.md\n├── Taskfile.yml\n├── go.mod\n└── go.sum\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatumbrain%2Fgo-hex-arch-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatumbrain%2Fgo-hex-arch-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatumbrain%2Fgo-hex-arch-demo/lists"}