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
?
mix deps
: fetch dependencies.mix format
: format the code.mix test
: execute tests.MIX_ENV=prod mix release
: build the executable.mix clean
: delete all generated files.
How to define a function in the IEX console?
What is a Plug
?
How to handle errors in a Plug?
Use: Plug.ErrorHandler