{"id":24021307,"url":"https://github.com/ayemunhossain/grpc-nodejs","last_synced_at":"2026-04-09T16:02:16.531Z","repository":{"id":260939913,"uuid":"882755259","full_name":"AyemunHossain/grpc-nodejs","owner":"AyemunHossain","description":"🚀 This project builds a scalable gRPC in Node.js, enabling fast, secure, and efficient inter-service communication. gRPC, a high-performance RPC framework by Google, supports language-agnostic, type-safe communication. By implementing Protocol Buffers, HTTP/2, and TLS, this project enhances speed, security, and reliability with Node.js services.","archived":false,"fork":false,"pushed_at":"2024-11-18T17:49:04.000Z","size":149,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T00:12:03.844Z","etag":null,"topics":["grpc","grpc-js","mysql","nodejs","nodejs-grpc","redis","rpc","rpc-api","rpc-client","rpc-server"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/AyemunHossain.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-11-03T17:16:01.000Z","updated_at":"2024-11-19T10:06:04.000Z","dependencies_parsed_at":"2024-11-03T19:18:50.009Z","dependency_job_id":"8ecdafe3-dcb6-4a90-a50a-01f87f5ccfd3","html_url":"https://github.com/AyemunHossain/grpc-nodejs","commit_stats":null,"previous_names":["ayemunhossain/grpc-nodejs-boilerplate","ayemunhossain/grpc-nodejs"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyemunHossain%2Fgrpc-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyemunHossain%2Fgrpc-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyemunHossain%2Fgrpc-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyemunHossain%2Fgrpc-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AyemunHossain","download_url":"https://codeload.github.com/AyemunHossain/grpc-nodejs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240766613,"owners_count":19854119,"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":["grpc","grpc-js","mysql","nodejs","nodejs-grpc","redis","rpc","rpc-api","rpc-client","rpc-server"],"created_at":"2025-01-08T12:43:05.997Z","updated_at":"2026-04-09T16:02:16.422Z","avatar_url":"https://github.com/AyemunHossain.png","language":"JavaScript","readme":"# grpc-nodejs-boilerplate\n\n# Project Description\nThis project builds a scalable gRPC  in Node.js, enabling fast, secure, and efficient inter-service communication. gRPC, a high-performance RPC framework by Google, supports language-agnostic, type-safe communication. By implementing Protocol Buffers, HTTP/2, and TLS, this project enhances speed, security, and reliability with Node.js services.\n\n# Technologies\n1. Node.js\n2. gRPC\n3. Protocol Buffers\n4. HTTP/2\n5. TLS\n\n\n# Project Structure\n1. **cert**: Contains SSL certificates for secure communication.\n2. **protos**: Contains Protocol Buffers files for defining gRPC services.\n3. **client**:  Contains client-side code for making gRPC requests.\n4. **models**: Contains data models for defining request and response objects (.proto files).\n5. **middleware**: Contains middleware functions for intercepting and modifying gRPC requests.\n6. **utils**: Contains utility functions for handling gRPC requests and responses.\n7. **index.js**: Contains server-side code for defining gRPC services and starting the server.\n8. **config**: Contains configuration settings for the server.\n9. **microservice**: Contains microservices for handling gRPC requests.\n10. **package.json**: Contains metadata and dependencies for the project.\n11. **scripts**: Contains scripts for generating gRPC service and client files.\n12. **utils**: Contains utility functions for handling gRPC requests and responses.\n13. **.env**: Contains environment variables for the project.\n14. **package.json**: Contains dependency tree for the project.\n\n# Prerequisites\n1. Node.js\n2. npm\n3. Protocol Buffers Compiler (protoc)\n4. gRPC Node.js Plugin (not required for Node.js 12 and above)\n\n# Setup\n1. Clone the repository.\n2. Install protoc (Protocol Buffers Compiler) on a Linux system, follow these steps: \n\n```bash\nsudo apt update\nsudo apt install -y unzip wget\n```\nDownload the protoc Binary\n\n```bash\nwget https://github.com/protocolbuffers/protobuf/releases/download/v23.3/protoc-23.3-linux-x86_64.zip\n```\nExtract the Binary\n\n```bash\nunzip protoc-23.3-linux-x86_64.zip -d protoc\n```\nMove protoc to a Directory in Your PATH\n\n```bash\nsudo mv protoc/bin/protoc /usr/local/bin/\nsudo mv protoc/include/* /usr/local/include/\n```\nVerify Installation\n\n```bash\nprotoc --version\n```\n\n3. Install the dependencies using the following command:\n```bash\nnpm install\n```\n3. Generate the gRPC service and client files using the following command:\n```bash\nnpm run rpc\n```\n4. Start the server using the following command:\n```bash\nnpm run server\n```\n5. Start the client using the following command:\n```bash\nnpm run client\n```\n\n# Conclusion\nThis project demonstrates how to build a scalable gRPC server in Node.js. By leveraging gRPC, Protocol Buffers, HTTP/2, and TLS, this project enhances speed, security, and reliability in inter-service communication. For more information, refer to the official [gRPC documentation](https://grpc.io/docs/).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayemunhossain%2Fgrpc-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayemunhossain%2Fgrpc-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayemunhossain%2Fgrpc-nodejs/lists"}