{"id":34222943,"url":"https://github.com/waler4ik/kk","last_synced_at":"2026-03-12T02:01:05.415Z","repository":{"id":226896264,"uuid":"768226241","full_name":"waler4ik/kk","owner":"waler4ik","description":"Golang boilerplate code with a CLI tool: easily create, setup and extend Golang projects.","archived":false,"fork":false,"pushed_at":"2024-07-21T19:21:47.000Z","size":489,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-19T05:16:37.582Z","etag":null,"topics":["boilerplate","golang","openapi","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waler4ik.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}},"created_at":"2024-03-06T17:40:53.000Z","updated_at":"2024-12-17T14:28:53.000Z","dependencies_parsed_at":"2024-03-14T10:28:42.688Z","dependency_job_id":"fa8b8ef6-caac-41cc-98b2-49ed4865ef2a","html_url":"https://github.com/waler4ik/kk","commit_stats":null,"previous_names":["waler4ik/kk"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/waler4ik/kk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waler4ik%2Fkk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waler4ik%2Fkk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waler4ik%2Fkk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waler4ik%2Fkk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waler4ik","download_url":"https://codeload.github.com/waler4ik/kk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waler4ik%2Fkk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30412223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T00:40:14.898Z","status":"online","status_checked_at":"2026-03-12T02:00:07.260Z","response_time":114,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["boilerplate","golang","openapi","rest-api"],"created_at":"2025-12-15T23:58:10.990Z","updated_at":"2026-03-12T02:01:05.410Z","avatar_url":"https://github.com/waler4ik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"logo.png\" width=\"300\" height=\"350\"\u003e\n\u003c/p\u003e\n\n[![go test](https://github.com/waler4ik/kk/actions/workflows/go.yml/badge.svg)](https://github.com/waler4ik/kk/actions/workflows/go.yml)\n[![gosec Security Check](https://github.com/waler4ik/kk/actions/workflows/gosec.yml/badge.svg)](https://github.com/waler4ik/kk/actions/workflows/gosec.yml)\n[![version](https://img.shields.io/github/go-mod/go-version/waler4ik/kk?cache=1)](https://github.com/waler4ik/kk/blob/main/go.mod)\n[![license](https://img.shields.io/github/license/waler4ik/kk?cache=1)](LICENSE)\n# kk - Golang boilerplate CLI tool\n\u003e [!TIP]\n\u003e Create, setup and extend a Golang project like a puzzle in seconds\n\n## How to use it?\n### Install\n\n```zsh\ngo install github.com/waler4ik/kk@latest\n```\nAfter installation use `kk` command in your shell.\n\n### Init command\nCreates a Golang REST server project without endpoints. Chi is used as the default router.\n\n```zsh\nkk init rest github.com/waler4ik/kk-example\n```\n```zsh\nkk init -r chi rest github.com/waler4ik/kk-example\n```\n\nCreate a Golang REST server project with gin router.\n```zsh\nkk init -r gin rest github.com/waler4ik/kk-example\n```\n\n### Add command\nCreates and wires a REST resource endpoint\n```zsh\nkk add resource machines/data\n```\n\nCreates and wires a websocket endpoint. It's based on Melody project. See https://github.com/olahol/melody\n```zsh\nkk add ws rest/ws\n```\n\nCreates and wires a prometheus metrics endpoint. See https://prometheus.io/docs/guides/go-application/\n```zsh\nkk add metrics /metrics\n```\n\nAdds a secret manager provider based on environment variables.\n```zsh\nkk add envsecretmanager\n```\n\nAdds a postgres provider.\n```zsh\nkk add postgres\n```\n\nAdds a rabbitmq producer provider.\n```zsh\nkk add rabbitmqproducer\n```\n\n## OpenAPI / Swagger interface\nREST resource endpoints added with `kk add` come along with [swaggo/swag](https://github.com/swaggo/swag) annotations. So you can tell the world how your REST webservice works.\n\nPossible workflow:\n- Generate swagger 2.0 specification with [swaggo/swag](https://github.com/swaggo/swag). Run `swag init -g internal/docs/docs.go`.\n- Generate a Golang client from previously generated swagger 2.0 specification with [go-swagger](https://github.com/go-swagger/go-swagger) and use it for your Golang client application or just test your previously generated webservice.\n\n## Example project\nkk generates projects like this https://github.com/waler4ik/kk-example (chi router, REST endpoints).\n\n## Testing locally\nAfter running `kk init`, build and start your service with the commands below. Then check your endpoints using a tool of your choice.\n```zsh\ndocker compose build \u0026\u0026 docker compose up -d\n```\n## Upcoming features (commands)\n- [x] Add websocket command\n- [x] Generate swagger/openapi specification command\n- [x] Select router within init command (chi, gin, gorilla)\n- [x] Add cucumber godog tests for main workflows, see https://github.com/cucumber/godog\n- [ ] Add kubernetes scripts command\n\n## Similar approaches \n- https://github.com/hay-kot/scaffold It's a more general approach. It gives you the possibility to write and use your own templates.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaler4ik%2Fkk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaler4ik%2Fkk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaler4ik%2Fkk/lists"}