
Without Erlang, Elixir code has no virtual machine to run on, so we need to install Erlang as well. Here's the command to install Hex (If you have Hex already installed, it will upgrade Hex to the latest version): $ mix local.hexĮlixir code compiles to Erlang byte code to run on the Erlang virtual machine. Hex is necessary to get a Phoenix app running (by installing dependencies) and to install any extra dependencies we might need along the way. If we have just installed Elixir for the first time, we will need to install the Hex package manager as well. We won't get far in a Phoenix app without it! The Elixir site maintains a great Installation Page to help. Phoenix is written in Elixir, and our application code will also be written in Elixir.

Having dependencies installed in advance can prevent frustrating problems later on. Please take a look at this list and make sure to install anything necessary for your system.

a database - Phoenix recommends PostgreSQL, but you can pick others or not use a database at all.

