Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielleandro0801/typescript-grpc-basic-app
Repository with a basic Typescript gRPC app - a Client and a Server
https://github.com/gabrielleandro0801/typescript-grpc-basic-app
api grpc nodejs
Last synced: about 1 month ago
JSON representation
Repository with a basic Typescript gRPC app - a Client and a Server
- Host: GitHub
- URL: https://github.com/gabrielleandro0801/typescript-grpc-basic-app
- Owner: gabrielleandro0801
- License: mit
- Created: 2024-07-17T23:58:27.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-08-03T00:22:56.000Z (3 months ago)
- Last Synced: 2024-09-30T15:41:27.111Z (about 1 month ago)
- Topics: api, grpc, nodejs
- Language: JavaScript
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Typescript gRPC Basic App
## Installing the dependencies
``` bash
npm i
```## Fixing the style of file buf.yaml
``` bash
npm run buf:lint
npm run buf:format
```## Generating interfaces from .proto files
``` bash
npm run protoc:generate
```## Running the Server
``` bash
npm run server
```## Running the Client
``` bash
npm run client
```### Server
![image](https://github.com/gabrielleandro0801/typescript-grpc-basic-app/blob/master/images/server-running.png)### Client
![image](https://github.com/gabrielleandro0801/typescript-grpc-basic-app/blob/master/images/client-running.png)### Requesting on Postman
![image](https://github.com/gabrielleandro0801/typescript-grpc-basic-app/blob/master/images/running-on-postman.png)## Acknowledgments
Basic gRPC API in Typescript tutorials
- [dev.to - Aria Azadi Pour](https://dev.to/devaddict/use-grpc-with-node-js-and-typescript-3c58)
- [Medium - Mikhail Gus'kov](https://medium.com/front-end-weekly/implementation-of-grpc-in-web-and-server-with-typescript-165e8ca0155b)
- [Github - Idnan](https://github.com/Idnan/ts-grpc-example/blob/master/src/server.ts)
- [Github - CatsMiaow](https://github.com/CatsMiaow/node-grpc-typescript/blob/master/src/client.ts)
- [Github - Megoos](https://github.com/Megoos/gRPC-web-example/blob/main/server/services.ts)Comparing REST Status Codes to gRPC Status Codes
- [dev.to - Milad Roudgarian](https://dev.to/mindwingx/common-status-codes-in-grpc-and-http-38pd)gRPC for NodeJS
- [Github - grpc](https://github.com/grpc/grpc-node?tab=readme-ov-file)