Skip to content

delimce/java-grpc-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java GRPC Lab

This project is a simple Java application that demonstrates how to set up a gRPC server using Spring Boot. It includes a basic Ping service that responds with a Pong message.

Prerequisites

  • Java 17 or higher
  • Maven 3.6 or higher
  • grpcurl

Building the Application

To build the application, run the following command in the project root directory:

./mvnw -DskipTests package

Running the Application

You can run the application using the Spring Boot Maven plugin:

./mvnw spring-boot:run

Alternatively, you can run the packaged JAR file:

java -jar target/*.jar

Testing the GRPC Service

Once the server is running, you can test the Ping service using grpcurl. First, list the available services:

grpcurl -plaintext localhost:9090 list

test ping service:

grpcurl -plaintext -d '{}' localhost:9090 health.PingService/Ping

About

java lab implementation for GRPC framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages