{"id":16874744,"url":"https://github.com/pedrogao/jerry","last_synced_at":"2025-06-30T19:08:05.690Z","repository":{"id":92512136,"uuid":"157394222","full_name":"pedrogao/jerry","owner":"pedrogao","description":"a template of restful api use gin","archived":false,"fork":false,"pushed_at":"2019-05-10T14:01:27.000Z","size":56,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-11T11:58:06.209Z","etag":null,"topics":["gin","golang","rest-api"],"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/pedrogao.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":"2018-11-13T14:35:54.000Z","updated_at":"2023-02-24T13:32:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"d5ae230a-e5ec-481d-84aa-3229f6dae3a0","html_url":"https://github.com/pedrogao/jerry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pedrogao/jerry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrogao%2Fjerry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrogao%2Fjerry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrogao%2Fjerry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrogao%2Fjerry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedrogao","download_url":"https://codeload.github.com/pedrogao/jerry/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrogao%2Fjerry/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262834798,"owners_count":23371851,"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":["gin","golang","rest-api"],"created_at":"2024-10-13T15:33:58.233Z","updated_at":"2025-06-30T19:08:05.651Z","avatar_url":"https://github.com/pedrogao.png","language":"Go","readme":"# gin-rest-template\n\n\u003e 一个使用gin开发restful api应用的模板\n\n## 代理\n\n**国内容易被墙，推荐设置proxy**\n\n```sh\nexport GOPROXY=https://goproxy.io\n```\n\n## 配置\n\n使用viper读取和使用配置，环境变量的前缀的`JERRY`。\n\n\n## 运行\n\n### 懒人版\n\n```bash\n./run.sh\n```\n\n### 详细版\n\n先进行编译：\n\n```bash\nexport GOPROXY=https://goproxy.io\n\ngo build -o jerry jerry.go\n```\n\n由于使用的是go module，在build的期间会默认下载需要的所有依赖，等待时间较长，耐心等待。\n\n运行：\n\n```bash\nexport JERRY_ADDR=:5000\n \nexport JERRY_RUNMODE=release\n \n./jerry\n```\n\n## TODO LIST\n\n- [x] 全局异常处理\n- [x] 参数检验\n- [x] 多级路由，路由分层，路由前缀\n- [x] JWT 支持\n- [x] 日志记录\n- [x] ORM 框架集成\n- [x] 配置文件驱动\n- [x] cors跨域\n- [x] 测试驱动\n- [ ] 优化，美观\n\n\u003e 以高度封装带来的简单性，并不会带来真正的简单，只会带来更加的复杂","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrogao%2Fjerry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrogao%2Fjerry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrogao%2Fjerry/lists"}