{"id":15198772,"url":"https://github.com/ko1103/nestjs-buf-example","last_synced_at":"2026-03-05T08:04:49.990Z","repository":{"id":238124650,"uuid":"795934245","full_name":"Ko1103/nestjs-buf-example","owner":"Ko1103","description":"NestJS and Buf showcase","archived":false,"fork":false,"pushed_at":"2024-05-06T01:34:09.000Z","size":186,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-14T07:47:28.774Z","etag":null,"topics":["buf","example","nest","nestjs","node","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Ko1103.png","metadata":{"files":{"readme":"README.japanese.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-05-04T12:44:51.000Z","updated_at":"2024-07-05T06:38:39.000Z","dependencies_parsed_at":"2024-05-04T13:43:37.962Z","dependency_job_id":"4ef62bea-e7d0-40d3-b917-35e5bd8dcd31","html_url":"https://github.com/Ko1103/nestjs-buf-example","commit_stats":{"total_commits":23,"total_committers":1,"mean_commits":23.0,"dds":0.0,"last_synced_commit":"c2b7b5a2b9637fd81339976e79dd6e9218999c61"},"previous_names":["ko1103/nestjs-buf-example"],"tags_count":0,"template":false,"template_full_name":"Ko1103/nestjs-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ko1103%2Fnestjs-buf-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ko1103%2Fnestjs-buf-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ko1103%2Fnestjs-buf-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ko1103%2Fnestjs-buf-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ko1103","download_url":"https://codeload.github.com/Ko1103/nestjs-buf-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233825614,"owners_count":18736211,"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","example","nest","nestjs","node","typescript"],"created_at":"2024-09-28T01:41:09.409Z","updated_at":"2026-03-05T08:04:44.946Z","avatar_url":"https://github.com/Ko1103.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\n\nNestJS と Buf を使った protobuf のサーバ実装例です。\n\n二つのツール\n\n- NestJS\n- Buf\n\nを使っています。\n\nこのリポジトリでは\n\n- Buf の StyleGuide に沿った proto ファイルの作成\n- proto ファイルを元に TypeScript の sdk を `src/proto`に生成\n- NestJS で proto ファイルと TypeScript の sdk を使ってサーバを実装\n- Dockerfile を使ってコンテナ化\n- docker-compose を使って環境構築\n\nを行っています。\n\n## Directory Structure\n\n```\n.\n├── Dockerfile\n├── README.md\n├── docker-compose.yml\n├── nest-cli.json\n├── proto // proto ファイル\n├── src\n│   ├── posts // ユーザーの投稿リソース\n│   ├── proto // proto ファイルによって生成された TypeScript の sdk\n│   ├── users // ユーザーのリソース\n│   │   ├── users.controller.ts\n│   │   ├── users.module.ts\n│   │   ├── users.service.ts\n│   ├── app.module.ts\n│   ├── main.ts\n├── tsconfig.build.json\n├── tsconfig.json\n```\n\n## Requirements\n\n- Docker\n- Docker Compose\n- Node.js v18\n\n## Installation\n\n```bash\n$ npm install\n```\n\n## Running the app\n\nproto ファイルから TypeScript の sdk を生成\n\n```bash\n$ npm run proto:gen\n```\n\nNestJS サーバを起動\n\n```bash\n# development\n$ npm run start\n\n# watch mode\n$ npm run start:dev\n\n# production mode\n$ npm run start:prod\n```\n\n.proto ファイルに変更があった場合は、再度 sdk を生成してください。\n\n## License\n\nNest is [MIT licensed](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fko1103%2Fnestjs-buf-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fko1103%2Fnestjs-buf-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fko1103%2Fnestjs-buf-example/lists"}