[Test project for a course at IMT]
Java service with Maven. This service implements a test gRPC API to query hotel rooms.
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
- Have Java 1.8 (jdk) installed (https://openjdk.java.net/install/)
- Have Apache Maven installed (https://maven.apache.org/download.cgi)
- 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