{"id":20146477,"url":"https://github.com/kmturley/angular-nest-grpc","last_synced_at":"2025-04-09T19:34:22.576Z","repository":{"id":52324436,"uuid":"167752229","full_name":"kmturley/angular-nest-grpc","owner":"kmturley","description":"Example full-stack Typescript project using Angular, NestJS and gRPC","archived":false,"fork":false,"pushed_at":"2021-09-23T10:57:25.000Z","size":585,"stargazers_count":90,"open_issues_count":2,"forks_count":26,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-23T21:24:15.347Z","etag":null,"topics":["angular","envoy-proxy","grpc","nestjs"],"latest_commit_sha":null,"homepage":"https://medium.com/creative-technology-concepts-code/using-grpc-with-nestjs-and-angular-b60b444bc3ab","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/kmturley.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}},"created_at":"2019-01-26T23:59:05.000Z","updated_at":"2025-03-06T15:23:27.000Z","dependencies_parsed_at":"2022-08-27T03:17:27.267Z","dependency_job_id":null,"html_url":"https://github.com/kmturley/angular-nest-grpc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmturley%2Fangular-nest-grpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmturley%2Fangular-nest-grpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmturley%2Fangular-nest-grpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmturley%2Fangular-nest-grpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kmturley","download_url":"https://codeload.github.com/kmturley/angular-nest-grpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248098163,"owners_count":21047390,"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":["angular","envoy-proxy","grpc","nestjs"],"created_at":"2024-11-13T22:23:31.484Z","updated_at":"2025-04-09T19:34:22.536Z","avatar_url":"https://github.com/kmturley.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-nest-grpc\n\nExample full-stack Typescript project using:\n\n* Angular 9.1.x\n* NestJS 7.0.x\n* Protocol Buffers 3.12.x\n* Envoy Proxy 1.14.x\n\n\n## Installation\n\nInstall dependencies using:\n\n    docker-compose build\n\n\n## Usage\n\nRun backend, frontend and proxy together using:\n\n    docker-compose up\n\nAccess the Nest gRPC microservice at:\n\n    http://localhost:50051/\n\nAccess the Envoy Proxy at:\n\n    http://localhost:8080/\n\nView the Angular frontend at:\n\n    http://localhost:4200/\n\n\n## Protocol Buffers\n\nIf you update backend .proto files, then you will need to recompile them to frontend services using:\n\n    cd frontend\n    npm run compile\n\nYou can find out more information about gRPC requests and generated client-side code here:\n\n    https://github.com/improbable-eng/grpc-web/blob/master/client/grpc-web/docs/code-generation.md\n\n\n## Exploring and testing endpoints\n\nInstall grpc_cli using:\n\n    npm install -g grpcc\n\nThen view the endpoints using:\n\n    grpcc -i --proto ./backend/src/hero/hero.proto --address localhost:50051\n\n    // call grpc methods\n    client.getHeroes({}, printReply)\n    client.getHeroById({ id: 1 }, printReply)\n\n    // call streaming methods\n    var call = client.getHeroesStream().on('data', streamReply).on('status', streamReply); call.write({});\n    var call = client.getHeroByIdStream().on('data', streamReply).on('status', streamReply); call.write({ id: 1 });\n\nTest the regular HTTP REST api at:\n\n    http://localhost:3001/hero\n    http://localhost:3001/hero/1\n\n\n## Directory structure\n\n    /backend                               --\u003e Backend source files\n    /frontend                              --\u003e Frontend sources files\n\n\n## Contact\n\nFor more information please contact kmturley\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmturley%2Fangular-nest-grpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkmturley%2Fangular-nest-grpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmturley%2Fangular-nest-grpc/lists"}