Illustration
abstract

Given an ElixirProject, how to build an Executable?

Given an Elixir project, MIX_ENV=prod mix release.

How to build an ElixirProject?

mix new …

How to use an ElixirProject ?

  1. mix deps: fetch dependencies.
  2. mix format: format the code.
  3. mix test: execute tests.
  4. MIX_ENV=prod mix release: build the executable.
  5. mix clean: delete all generated files.

How to define a function in the IEX console?

$ iex func = fn(x) -> x + 1 end

What is a Plug?

How to handle errors in a Plug?

Use: Plug.ErrorHandler