Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yogeshnikam671/grpc-demo
This project is created to get acquainted with grpc as a newbie
https://github.com/yogeshnikam671/grpc-demo
Last synced: about 14 hours ago
JSON representation
This project is created to get acquainted with grpc as a newbie
- Host: GitHub
- URL: https://github.com/yogeshnikam671/grpc-demo
- Owner: yogeshnikam671
- Created: 2024-05-26T11:11:49.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-24T07:02:21.000Z (7 months ago)
- Last Synced: 2024-12-01T02:08:54.175Z (about 2 months ago)
- Language: Kotlin
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GRPC with kotlin+gradle
## How to run locally?
1. Run `./gradlew clean build` [This generates the required grpc classes out of the hello.proto file]#### Testing only server
1. Go to `GrpcServer.kt` and run the `main` method from your IntelliJ IDE.
2. You can see the server started on port `50051` text in the application run logs.
3. Go to file `resources -> requests.http`.
4. This file contains the GRPC request which you can directly run from within the IntelliJ IDE.#### Testing client along with server
1. Start the server as explained in the above section.
2. Go to `GreeterClient.kt` and run the `main` method.
3. This hits the server method and logs the response in the client run logs.