{"id":15096003,"url":"https://github.com/gopher-lego/skeleton","last_synced_at":"2026-02-09T01:04:17.615Z","repository":{"id":200366771,"uuid":"265519682","full_name":"gopher-lego/skeleton","owner":"gopher-lego","description":"Newer: https://github.com/gopher-lego/ginger","archived":false,"fork":false,"pushed_at":"2020-12-29T15:20:01.000Z","size":98,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-25T01:04:15.368Z","etag":null,"topics":["gin","golang-project","http-api","laravel","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":null,"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":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-05-20T09:44:32.000Z","updated_at":"2024-07-22T07:14:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"82b5fca7-d224-48f4-8cd8-b6497ca4b861","html_url":"https://github.com/gopher-lego/skeleton","commit_stats":null,"previous_names":["gopher-lego/skeleton"],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/gopher-lego/skeleton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopher-lego%2Fskeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopher-lego%2Fskeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopher-lego%2Fskeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopher-lego%2Fskeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gopher-lego","download_url":"https://codeload.github.com/gopher-lego/skeleton/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopher-lego%2Fskeleton/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29252665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T22:49:53.206Z","status":"ssl_error","status_checked_at":"2026-02-08T22:49:51.384Z","response_time":57,"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":["gin","golang-project","http-api","laravel","skeleton","template"],"created_at":"2024-09-25T15:44:47.805Z","updated_at":"2026-02-09T01:04:17.600Z","avatar_url":"https://github.com/gopher-lego.png","language":"Go","readme":"# skeleton \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 bindata.go    # To avoid syntaxx error only. (bindata.go only used in release mode)\n```\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$ go-bindata -o bindata.go setting/ # generate bindata.go that is load for release mode which will never be changed\n$ export GIN_MODE=release\n$ \"go build \u0026\u0026 ./skeleton\" OR \"go run main.go bindata.go\"\n\n# Optional\n$ scp skeleton 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 skeletonApi/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.\n\nSupport config set by Viper in config/\n\nSupport load setting/ value into build binary by Working with bindata.go\n\nSupport production ready Docker environment out of box.\n\nSupport migration in migrate.go\n\n## Development workflow\n\n```\nmain.go -\u003e\nroute/api.go -\u003e\n\tapp/http/xx.go -\u003e\n\tapp/repository/xxxRepo.go \u003c- app/model/xxx.go\n\t\t\t\t  \u003c- config/database.go\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgopher-lego%2Fskeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgopher-lego%2Fskeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgopher-lego%2Fskeleton/lists"}