Um serviço de gerenciamento de notas de alunos usando o método de serialização Protocol Buffer.
- java.net
- java.io
- java.sql
- socket
- sqlite3
git clone https://github.com/souzalucas/banknote_manager_protocol_buffer.git
cd banknote_manager_protocol_buffer
mkdir protoc
cd protoc
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.13.0/protoc-3.13.0-linux-x86_64.zip
unzip protoc-3.13.0-linux-x86_64.zip
alias protoc=/home/user/banknote_manager_protocol_buffer/protoc/bin/protoc
cd ..
protoc --python_out=pythoncode/ banknoteManager.proto
protoc --java_out=javacode/ banknoteManager.proto
pip3 install python3-protobuf protobuf
mkdir javacode/lib
cd javacode/lib
wget https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.13.0/protobuf-java-3.13.0.jar
wget https://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/3.32.3.2/sqlite-jdbc-3.32.3.2.jar
javac -cp ":lib/*" *.java -Xlint
java -cp ":lib/*" ServerTcpBanknoteManager
python3 clientTcpBanknoteManager.py
listAlunos
RA: 111111
Nome: Fulano
Periodo: 6
--------------------
RA: 222222
Nome: Ciclano
Periodo: 7
--------------------