Skip to content

gRPC service in a Web Services course at IMT Mines Alès

License

Notifications You must be signed in to change notification settings

KontainPluton/gRPC-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC-Service

Language Maven Api provided

IMT Contributor GitHub last commit

[Test project for a course at IMT]

Information

Java service with Maven. This service implements a test gRPC API to query hotel rooms.

Setup

With Docker Docker

By default, this project is configured to run with docker.

To run project, you can choose to use the docker-compose file, or build manually images from the DockerFile of each service. (docker image are not stored on docker hub, you will have to build them with DockerFile first)

To build the grpc service image, you can follow the guide here : https://github.com/KontainPluton/gRPC-Service/blob/main/docker/createDockerImage.md


Without Docker

Requirements :

Build the gRPC-Service

  • Go into java-grpc-server folder.
  • Run : mvn clean
  • Run : mvn install

Into the target folder, you will find two jar file :

  • InfresGrpcWebService-1.0-jar-with-dependencies.jar represents the gRPC server.
  • InfresGrpcWebService-1.0.jar representes the gRPC client (for testing).

To run the server :

java -jar InfresGrpcWebService-1.0-jar-with-dependencies.jar

If you run the server part, you can access to it at : localhost:8070