Make sure you have install protoc and protoc elir generator and run make
command inside root directory. It will get dependencies and compile application. First start server to start listen for incoming data mix grpc.server
and then start client to send data mix run priv/client.exs
. You will see result directly in terminal.
Make sure your pwd is root folder of repository and run build
docker build -t elixir-app .
Start docker image.
docker run -it -p 50051:50051 elixir-app
Show list of containers where you should see elixir-app running.
docker ps
Copy elixir-app container id and replace [container-id]
docker exec -it [container-id] bash
This command will exec bash in the container. To start client and process the data start
mix run priv/client.exs
To run tests run mix test
in root directory.