From http://elixir-lang.org/install.html
- Add Erlang Solutions repo:
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install elixir
elixir -v
should print the Elixir versioniex
starts REPL
Download dependencies defined in mix.exs
, asks to install Hex on first run.
mix deps.get
Run tests found under test/
.
mix test
Run entrypoint:
mix run -e JsonCli.listen
Load code and dependencies to REPL:
iex -S mix
Send UDP messages from command line using Netcat
echo -n "foobar" | nc -u -w0 127.0.0.1 1337