{"id":18445009,"url":"https://github.com/chalmeal/go-gin-file","last_synced_at":"2026-05-02T20:35:31.930Z","repository":{"id":238960954,"uuid":"798105132","full_name":"chalmeal/go-gin-file","owner":"chalmeal","description":"Go(Gin)とAWS(S3)を想定し、MinIOを利用したファイルアップロード","archived":false,"fork":false,"pushed_at":"2024-05-11T23:45:23.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T01:47:45.940Z","etag":null,"topics":["docker","gin","go-api","go-example","go-rest-api","golang","minio","rest-api"],"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/chalmeal.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":"2024-05-09T05:24:50.000Z","updated_at":"2024-05-11T23:44:21.000Z","dependencies_parsed_at":"2024-05-09T06:31:46.307Z","dependency_job_id":"ff7f8116-790e-4918-98b6-3d106b871856","html_url":"https://github.com/chalmeal/go-gin-file","commit_stats":null,"previous_names":["chalmeal/go-gin-file"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/chalmeal/go-gin-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalmeal%2Fgo-gin-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalmeal%2Fgo-gin-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalmeal%2Fgo-gin-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalmeal%2Fgo-gin-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chalmeal","download_url":"https://codeload.github.com/chalmeal/go-gin-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalmeal%2Fgo-gin-file/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32549380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T19:18:06.202Z","status":"ssl_error","status_checked_at":"2026-05-02T19:16:21.335Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","gin","go-api","go-example","go-rest-api","golang","minio","rest-api"],"created_at":"2024-11-06T07:04:30.644Z","updated_at":"2026-05-02T20:35:31.904Z","avatar_url":"https://github.com/chalmeal.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"**go-gin-file**\n\nGolang + Gin + MiniO\n\n## はじめに\nS3を想定したファイルダウンロード/アップロード実装です。MiniOを利用し、ローカル環境上でのストレージ利用を可能とします。\n\n## 構成\n```\n├── main.go\n├── docker-compose.yml\n├── common\n|    ├── aws.go\n|    ├── db.go\n|    ├── response.go\n|    └── utils.go\n├── config\n|    ├── app.ini\n|    └── config.go\n├── app\n|     ├── models\n|     |     ├── files.go\n|     |     └── users.go\n|     └── api\n|　　　　　　├── controllers.go \n|　　　　　　├── file_controllers.go \n|　　　　　　└── user_controllers.go\n└── routes\n      └── api.go\n```\n## ドキュメント\n### データ定義\n| テーブル名                                                                      | 概要                                                 |\n| ------------------------------------------------------------------------------- | ---------------------------------------------------- |\n| [files](https://github.com/chalmeal/go-gin-file/blob/master/.doc/data/files.md) | ファイルテーブル。アップロードされたファイルの情報。 |\n| [users](https://github.com/chalmeal/go-gin-file/blob/master/.doc/data/users.md) | ユーザーテーブル。サービスの利用者情報。             |\n\n### 仕様\n| 書名                                                                                            | 概要                                      |\n| ----------------------------------------------------------------------------------------------- | ----------------------------------------- |\n| [ファイル利用](https://github.com/chalmeal/go-gin-file/blob/master/.doc/method/ファイル利用.md) | ファイルアップロード/ダウンロードについて |\n\n## セットアップ\n\n### DB\n* DBの環境は以下を想定します。\n  * MySQL\n  * GORM\n* create schemaのみ行う必要があります。[DDL](.db/setup/ddl-create-schema.sql)\n* [app.ini](config/app.ini)に対してDB接続情報を定義してください。\n* テーブルはGORMが提供するAutoMigrateを利用します。\n  * 各テーブルは初回API実行時に生成されます。\n  * 本プロジェクトで定義されている詳細なデータ定義に関しては、各ドメインのdocを参照してください。\n    * ファイル：[files](https://github.com/chalmeal/go-gin-file/blob/master/.doc/data/files.md)\n    * ユーザー：[users](https://github.com/chalmeal/go-gin-file/blob/master/.doc/data/users.md)\n\n### Docker\nMinIOの利用にDockerを利用しています。Dockerの導入を行ってください。\n\n## アプリケーションスタート\nアプリケーションのスタートはデバッガを推奨しています。\n\nRun and Debugの`Run go-echo-file`から実行してください。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchalmeal%2Fgo-gin-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchalmeal%2Fgo-gin-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchalmeal%2Fgo-gin-file/lists"}