{"id":22404454,"url":"https://github.com/you-saku/echo-docker-sample","last_synced_at":"2026-04-11T18:04:02.725Z","repository":{"id":45780674,"uuid":"512332840","full_name":"You-saku/echo-docker-sample","owner":"You-saku","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-03T05:20:11.000Z","size":54,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-03-24T03:48:02.587Z","etag":null,"topics":["crud-api","docker","echo","github-actions","golang","golang-migrate","jwt-authentication","mysql","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/You-saku.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}},"created_at":"2022-07-10T03:09:08.000Z","updated_at":"2023-07-23T14:02:28.000Z","dependencies_parsed_at":"2023-07-23T16:33:13.536Z","dependency_job_id":null,"html_url":"https://github.com/You-saku/echo-docker-sample","commit_stats":null,"previous_names":["you-saku/echo-docker-sample"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/You-saku%2Fecho-docker-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/You-saku%2Fecho-docker-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/You-saku%2Fecho-docker-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/You-saku%2Fecho-docker-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/You-saku","download_url":"https://codeload.github.com/You-saku/echo-docker-sample/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245761303,"owners_count":20667895,"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":["crud-api","docker","echo","github-actions","golang","golang-migrate","jwt-authentication","mysql","testing"],"created_at":"2024-12-05T10:13:12.113Z","updated_at":"2025-10-28T21:50:22.184Z","avatar_url":"https://github.com/You-saku.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# echo-docker-sample\n\nThis repository is Test app. I practice golang.\n\n## requirement\n * git install\n * docker install\n * [golang-migrate(v4.15.2)](https://github.com/golang-migrate/migrate) install\n\n\n## setup\n```\n1. git clone git@github.com:You-saku/echo-docker-sample.git\n3. cd echo-docker-sample\n4. cp api/.env.example api/.env\n5. make setup\n6. make start\n7. open http://localhost:80 (another terminal)\n```\n\n## Official Doc\n * [echo](https://echo.labstack.com/)\n\n## Todo\n - いろんなアーキテクチャに挑戦\n\n## 個人メモ\n\n### APIの動作確認\n * postman-schemaディレクトリにpostmanでAPI叩けるようにするファイルを用意\n * importして使ってください(import方法は調べよう)\n\n### フロントとの連携\n * localhost:3001のCORS設定をしてあります\n\n### ファイル分割\n * [ファイル分割したときに参考になる](https://qiita.com/fetaro/items/31b02b940ce9ec579baf#%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%83%A2%E3%83%BC%E3%83%89%E3%81%A7%E3%81%AE%E5%86%85%E9%83%A8%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%81%AEimport)\n\n### gorm\n * [公式Doc](https://gorm.io/ja_JP/docs/)\n * リレーション\n    * [1対多](https://gorm.io/ja_JP/docs/has_many.html) \n\n### validate\n * 参考\n   * [公式Doc](https://echo.labstack.com/guide/request/)\n   * [ライブラリの公式Doc](https://github.com/go-playground/validator)\n   * https://qiita.com/nanamen/items/c824a2c8f2e1767f90f8\n   \n * やってみたい\n   * https://codehex.hateblo.jp/entry/echo-context\n\n### migration(golang-migrate)\n * 詳しくは[公式Docへ](https://github.com/golang-migrate/migrate)\n * makeコマンドでmigrationファイル作成(新規テーブル作成時に使えます)\n```例)\nmake migration name=users // 複数形にすること\n```\n\n### テスト\n#### コマンド\n  * go test　　　 　　：テスト実行\n  * go test -v　　　　：テスト実行（詳細な実行結果出力）\n  * go test -cover　　：テスト実行＋コードカバレッジ\n  * go test -cover -v ：テスト実行＋コードカバレッジ（詳細な実行結果出力）\n\nこのリポジトリではディレクトリ構成の関係でコマンドは以下の通り\n```\ndocker-compose exec go go test ./test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyou-saku%2Fecho-docker-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyou-saku%2Fecho-docker-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyou-saku%2Fecho-docker-sample/lists"}