{"id":20509916,"url":"https://github.com/douyu/jupiter-layout","last_synced_at":"2025-10-29T10:02:50.215Z","repository":{"id":40374024,"uuid":"490944859","full_name":"douyu/jupiter-layout","owner":"douyu","description":"Jupiter Project Layout","archived":false,"fork":false,"pushed_at":"2024-02-05T03:24:15.000Z","size":23065,"stargazers_count":37,"open_issues_count":8,"forks_count":7,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-27T12:47:01.022Z","etag":null,"topics":["buf","douyu","framework","go","golang","golangci-lint","jupiter","layout","mit-license","mockery","wire"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/douyu.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":"2022-05-11T03:34:51.000Z","updated_at":"2024-06-12T01:13:58.000Z","dependencies_parsed_at":"2024-11-15T20:27:35.211Z","dependency_job_id":"9bc10a47-383a-4501-9797-4ced2f7ade60","html_url":"https://github.com/douyu/jupiter-layout","commit_stats":null,"previous_names":[],"tags_count":3,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douyu%2Fjupiter-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douyu%2Fjupiter-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douyu%2Fjupiter-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douyu%2Fjupiter-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/douyu","download_url":"https://codeload.github.com/douyu/jupiter-layout/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248790115,"owners_count":21161945,"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":["buf","douyu","framework","go","golang","golangci-lint","jupiter","layout","mit-license","mockery","wire"],"created_at":"2024-11-15T20:27:02.934Z","updated_at":"2025-10-29T10:02:45.162Z","avatar_url":"https://github.com/douyu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[Jupiter](https://github.com/douyu/jupiter) Project Layout\n===\n\n[![GoTest](https://github.com/douyu/jupiter-layout/workflows/Go/badge.svg)](https://github.com/douyu/jupiter-layout/actions)\n[![codecov](https://codecov.io/gh/douyu/jupiter-layout/branch/main/graph/badge.svg?token=DO7GHMMELG)](https://codecov.io/gh/douyu/jupiter-layout)\n[![Go Report Card](https://goreportcard.com/badge/github.com/douyu/jupiter-layout)](https://goreportcard.com/report/github.com/douyu/jupiter-layout)\n![license](https://img.shields.io/badge/license-Apache--2.0-green.svg)\n\n\nConcepts\n---\n\n* Support HTTP/gRPC with Protobuf\n* Single Repo and Multiple Applications\n* High Cohesion and Low Coupling\n* Dependency Injection\n* Auto Code Generation\n* Unit Test with Mock\n* E2E Test with Docker\n* Define errors in Proto\n* Define validate rules in Proto\n* Auto generate Swagger API Documentation\n* Builtin Swagger UI\n\nQuick Start with Kubernetes\n---\n\n* Deploy Juno\n\n```bash\nkubectl apply -f https://github.com/douyu/juno/releases/download/latest/install.yml\n```\n\n* Wait for ready\n\n```bash\nkubectl wait --for=condition=available --timeout=600s deployment/juno-admin -n default\n```\n\n* Deploy Jupiter-Layout\n\n```bash\nkubectl apply -f https://github.com/douyu/jupiter-layout/releases/download/latest/install.yml\n```\n\n* Wait for ready\n\n```bash\nkubectl wait --for=condition=available --timeout=600s deployment/exampleserver -n default\n```\n\n* Expose Jupiter-Layout Deployment\n\n```bash\nkubectl port-forward deployments/exampleserver 9527:9527 9528:9528 9529:9529 -n default\n```\n\nTest\n---\n\n* HTTP\n\n```bash\ncurl \"http://localhost:9527/v1/helloworld.Greeter/SayHello/bob\"\n```\n\n```json\n{\"error\":0,\"msg\":\"\",\"data\":{\"name\":\"hello bob\",\"ageNumber\":0,\"sex\":0,\"metadata\":null}}\n```\n\n* GRPC\n\n```bash\nbuf curl --schema api --protocol grpc --http2-prior-knowledge --data '{\"name\":\"bob\"}' http://localhost:9528/helloworld.v1.GreeterService/SayHello\n```\n\n```json\n{\"data\":{\"name\":\"hello bob\"}}\n```\n\nDEVELOPER Guide\n---\n\n* [DEVELOPER.md](DEVELOPER.md)\n\nBugs and Feedback\n---\n\nFor bug report, questions and discussions please submit an issue.\n\nContributing\n---\n\nContributions are always welcomed!\n\nYou can start with the issues labeled with good first issue.\n\n\u003ca href=\"https://github.com/douyu/jupiter-layout/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=douyu/jupiter-layout\" /\u003e\n\u003c/a\u003e\n\nContact\n---\n\n* [Wechat Group](https://jupiter.douyu.com/join/#%E5%BE%AE%E4%BF%A1)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouyu%2Fjupiter-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdouyu%2Fjupiter-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouyu%2Fjupiter-layout/lists"}