{"id":28323272,"url":"https://github.com/poabob/slack-clone-back-end","last_synced_at":"2025-06-23T22:30:30.418Z","repository":{"id":290589663,"uuid":"974291488","full_name":"POABOB/slack-clone-back-end","owner":"POABOB","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-08T09:18:21.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-01T23:49:48.273Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/POABOB.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,"zenodo":null}},"created_at":"2025-04-28T14:47:28.000Z","updated_at":"2025-05-08T09:18:24.000Z","dependencies_parsed_at":"2025-04-29T16:36:02.244Z","dependency_job_id":null,"html_url":"https://github.com/POABOB/slack-clone-back-end","commit_stats":null,"previous_names":["poabob/slack-clone-back-end"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/POABOB/slack-clone-back-end","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/POABOB%2Fslack-clone-back-end","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/POABOB%2Fslack-clone-back-end/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/POABOB%2Fslack-clone-back-end/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/POABOB%2Fslack-clone-back-end/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/POABOB","download_url":"https://codeload.github.com/POABOB/slack-clone-back-end/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/POABOB%2Fslack-clone-back-end/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260926553,"owners_count":23083855,"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":[],"created_at":"2025-05-25T15:11:17.020Z","updated_at":"2025-06-23T22:30:30.413Z","avatar_url":"https://github.com/POABOB.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slack Clone Backend\n\n這是一個基於微服務架構的 Slack Clone 後端專案。\n\n## 微服務專案結構\n\n```\n.\n├── pkg/                    # 共用套件\n│   ├── auth/              # 身份驗證相關\n│   ├── config/            # 配置管理\n│   ├── database/          # 資料庫連接\n│   ├── logger/            # 日誌系統\n│   ├── redis/             # Redis 客戶端\n│   └── utils/             # 通用工具\n│\n├── services/              # 微服務\n│   └── user-service/      # 用戶服務\n│       ├── cmd/          # 主程式進入點\n│       ├── internal/     # 內部包\n│       │   ├── domain/   # 領域模型\n│       │   ├── handler/  # HTTP 處理器\n│       │   ├── repository/ # 資料存取層\n│       │   └── service/  # 業務邏輯層\n│       └── config/      # 服務配置\n│\n├── scripts/               # 腳本文件\n└── README.md\n```\n\n## 共用套件說明\n\n### pkg/auth\n- JWT 相關功能\n- 權限驗證\n- 用戶認證\n\n### pkg/config\n- 配置管理\n- 環境變數處理\n- 配置驗證\n\n### pkg/database\n- 資料庫連接池\n- 資料庫配置\n- 遷移工具\n\n### pkg/logger\n- 日誌配置\n- 日誌格式化\n- 日誌輸出\n\n### pkg/redis\n- Redis 連接池\n- Redis 配置\n- 快取工具\n\n### pkg/utils\n- 通用工具函數\n- 錯誤處理\n- 驗證工具\n\n## 微服務說明\n\n### user-service\n- 用戶管理\n- 身份驗證\n- 權限控制\n\n## 開發環境設置\n\n1. 安裝依賴：\n```bash\ngo mod download\n```\n\n2. 運行服務：\n```bash\n# 運行用戶服務\ngo run services/user-service/cmd/main.go\n```\n\n## 測試\n\n```bash\ngo test ./...\n``` ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoabob%2Fslack-clone-back-end","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoabob%2Fslack-clone-back-end","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoabob%2Fslack-clone-back-end/lists"}