Here you can find a Erlang code examples from RabbitMQ tutorials.
This code is using RabbitMQ Erlang Client (User Guide).
To run this code you need at least Erlang R13B03, on Ubuntu you can get it using apt:
sudo apt-get install erlang
You also need rebar3: https://www.rebar3.org/docs/getting-started/
You need Erlang Client binaries:
rebar3 compile
rebar3 send
rebar3 recv
rebar3 new_task
rebar3 worker
Tutorial three: Publish/Subscribe:
rebar3 receive_logs
rebar3 emit_log
rebar3 receive_logs_direct
rebar3 emit_log_direct
rebar3 receive_logs_topic
rebar3 emit_log_topic
rebar3 rpc_server
rebar3 rpc_client