- mvn clean install
-
First Option (use docker compose):
start:
docker-compose up
build docker image:
docker-compose build
stop:
docker-compose down
-
Second Option (Manually):
Start server:
java -jar server/target/server-1.0-SNAPSHOT.jar
Start client:
java -jar client/target/client-1.0-SNAPSHOT.jar
-
Server:
The netty network application server accepts plain test messages and files. The files will be saved under /tmp folder.
-
Client:
The client sends 10 plain text messages and then one file. Then exit.
By default, it uses port 8080. Make sure the port is available.
https://www.baeldung.com/netty
https://dzone.com/articles/build-a-simple-netty-application-with-and-without
https://github.com/lohitvijayarenu/netty-protobuf