README.md 864 Bytes
Newer Older
Riccardo Presotto's avatar
Riccardo Presotto committed
1 2 3
# Setup ProtocolBuffer and GRPC
This repository contains a simple example that enables you to test the environment for **ProtocolBuffer** and **GRPC**.

Luca Arrotta's avatar
Luca Arrotta committed
4
* You can import the project directly from a *Version Control System*, by providing the following URL: 
Riccardo Presotto's avatar
Riccardo Presotto committed
5 6 7 8 9 10
https://ewserver.di.unimi.it/gitlab/riccardopresotto/setup_grpc.git

<img src = './assets/img_1.png'>

* Otherwise, take care to import the project as a Gradle Project

Luca Arrotta's avatar
Luca Arrotta committed
11 12
* If required, trust the project and accept the Gradle auto-import

Luca Arrotta's avatar
Luca Arrotta committed
13 14
* Wait until the Gradle indexing process ends (it may take a few seconds)

Riccardo Presotto's avatar
Riccardo Presotto committed
15
* Compile the .proto files: 
Luca Arrotta's avatar
Luca Arrotta committed
16 17
	1. Select from the menu bar **Build** -> **Rebuild Project**
	2. Check if some files have been generated in the directory *setup_grpc/build/generated/source/proto/main/java*
Riccardo Presotto's avatar
Riccardo Presotto committed
18 19 20 21

* The testing files are located in the directory: *setup_grpc/src/main/java/researcher*