{"id":18797779,"url":"https://github.com/gopher-lego/ginger","last_synced_at":"2026-03-17T23:02:50.661Z","repository":{"id":200280303,"uuid":"325322692","full_name":"gopher-lego/ginger","owner":"gopher-lego","description":"Working with Gin-framework just like Laravel-framework skeleton.","archived":false,"fork":false,"pushed_at":"2024-07-01T16:11:32.000Z","size":232,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T16:56:28.087Z","etag":null,"topics":["framework","gin","go","golang","laravel","rest-api","skeleton","template"],"latest_commit_sha":null,"homepage":"","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/gopher-lego.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":"2020-12-29T15:33:24.000Z","updated_at":"2024-07-01T16:13:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"c89e8c97-49ab-4c3f-b1e5-343539725a6a","html_url":"https://github.com/gopher-lego/ginger","commit_stats":null,"previous_names":["gopher-lego/ginger"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/gopher-lego/ginger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopher-lego%2Fginger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopher-lego%2Fginger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopher-lego%2Fginger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopher-lego%2Fginger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gopher-lego","download_url":"https://codeload.github.com/gopher-lego/ginger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopher-lego%2Fginger/sbom","scorecard":{"id":441258,"data":{"date":"2025-08-11","repo":{"name":"github.com/gopher-lego/ginger","commit":"367790f5a335cefe28c9691ed9d64e66b6caae31"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: containerImage not pinned by hash: Dockerfile-from-dist:7: pin your Docker image by updating golang:1.22.2 to golang:1.22.2@sha256:d5302d40dc5fbbf38ec472d1848a9d2391a13f93293a6a5b0b87c99dc0eaa6ae","Warn: containerImage not pinned by hash: Dockerfile-from-src:7: pin your Docker image by updating golang:1.22.2 to golang:1.22.2@sha256:d5302d40dc5fbbf38ec472d1848a9d2391a13f93293a6a5b0b87c99dc0eaa6ae","Warn: containerImage not pinned by hash: Dockerfile-go-with-sqlite:12: pin your Docker image by updating golang:1.14.2 to golang:1.14.2@sha256:1bd634c5a72bfa7fb48d54e37dd5d8174161bd6ca601b7d132c7b68eaf513c6b","Info:   0 out of   3 containerImage dependencies pinned","Info:   2 out of   2 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2024-2611 / GHSA-8r3f-844c-mc37"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T05:37:40.390Z","repository_id":200280303,"created_at":"2025-08-19T05:37:40.390Z","updated_at":"2025-08-19T05:37:40.390Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30635042,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T22:38:22.569Z","status":"ssl_error","status_checked_at":"2026-03-17T22:38:11.804Z","response_time":56,"last_error":"SSL_read: 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":["framework","gin","go","golang","laravel","rest-api","skeleton","template"],"created_at":"2024-11-07T22:09:33.116Z","updated_at":"2026-03-17T23:02:50.644Z","avatar_url":"https://github.com/gopher-lego.png","language":"Go","readme":"# ginger \n\nDirectory structure for sample golang project development.\n\nThere are several ways to use it.\n\n## Run debug mode directly\n\n```\n$ vi app.debug.json\n$ go run main.go\n```\n\n## Run debug mode with live reload\n\nThink about this tool ↓\n1) install air: https://github.com/cosmtrek/air#via-go-install\n2) faq: https://github.com/cosmtrek/air#command-not-found-air-or-no-such-file-or-directory\n\n## Deploy release mode directly\n\n```\n# Update setting\n$ cp app.mode.json.example app.release.json\n$ vi app.release.json\n\n# Build \u0026 distribute\n$ export GIN_MODE=release\n$ \"go build \u0026\u0026 ./ginger\" OR \"go run main.go\"\n\n# Optional\n$ scp ginger xx@xx.xx.xx.xx:/dist/\n```\n\n## Deploy \u0026 Run release with docker locally\n\n```\n$ vi setting/app.release.json\n$ dkc -f docker-compose-from-src.yml up -d --build --force-recreate\n```\n\n## Deploy in CI/CD way (Github Actions)\n\n```\n# Update and push to release/prod branch trigger actions\n$ vi .github/workflows/go.yml\n\n# On remote server\n$ cd gingerApi/dist\n$ dkc -f docker-compose-from-dist.yml up -d --build --force-recreate\n```\n\n## Preset features\n\nSupport global CORS middleware.\n\nSupport global Request Rate limit middleware by [limiter](https://github.com/ulule/limiter).\n\nSupport config set by [Viper](https://github.com/spf13/viper) in config/\n\nSupport production ready Docker environment out of box.\n\nSupport database/migrations with [golang-migration](https://github.com/golang-migrate/migrate)\n\n## Development workflow\n\n```\nmain.go -\u003e\nroute/api.go -\u003e\n\tapp/http/xx.go\n\tapp/request/xxx_request.go\n\tapp/repository/xxx_repo.go \u003c- app/model/xxx.go\n\t\t\t\t   \u003c- config/database.go\n```\n\n## Derived projects example\n\n[accountserve-go](https://github.com/farwish/accountserve-go)\n\n[orderserve-go](https://github.com/farwish/orderserve-go)\n\n\n## Thirdparty pkg\n\n### gorm\n\nOfficial example:\n```\n$ go get -u gorm.io/gorm\n$ go get -u gorm.io/driver/mysql\n$ go get -u gorm.io/driver/sqlite\n```\n\nhttps://gorm.io/zh_CN/docs/models.html\n\nhttps://gorm.io/zh_CN/docs/connecting_to_the_database.html\n\nhttps://gorm.io/zh_CN/docs/index.html#%E5%AE%89%E8%A3%85\n\n\n### golang-migrate\n\nCLI install: https://github.com/golang-migrate/migrate/tree/master/cmd/migrate\n\nMySQL driver: https://github.com/golang-migrate/migrate/tree/master/database/mysql\n\nCLI example\n```\n$ migrate create -ext sql -dir database/migrations -seq create_orders_table\n$ migrate -path database/migrations -database \"mysql://root:123456@(127.0.0.1:33056)/testdb?multiStatements=true\" up\n$ migrate -path database/migrations -database \"mysql://root:123456@(127.0.0.1:33056)/testdb?multiStatements=true\" version\n$ migrate -path database/migrations -database \"mysql://root:123456@(127.0.0.1:33056)/testdb?multiStatements=true\" force \u003c2\u003e\n$ migrate -path database/migrations -database \"mysql://root:123456@(127.0.0.1:33056)/testdb?multiStatements=true\" down\n```\n\n### uuid\n\nhttps://github.com/google/uuid\n\nhttps://godoc.org/github.com/google/uuid\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgopher-lego%2Fginger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgopher-lego%2Fginger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgopher-lego%2Fginger/lists"}