ðElixir fundamentals
This guide aims to provide you with the fundamentals to start using Elixir with Phoenix for web development. It is by no means an exhaustive guide on the fundamentals of Elixir. For more in-depth information about Elixir, refer to the official documentation.
This guide assumes that you have fundamental programming knowledge of concepts like integers/floats/booleans, conditionals, and loops.
Getting started
To try out Elixir, you can use the interactive shell (IEx). This should be automatically installed when you have installed Elixir. Go to your terminal and type
You should see a prompt like this:
Then, you can try running each commands in this environment.
Alternatively, you can also create a .exs
file and run it via elixir <filename>.exs
.
For this guide, you can assume that all code snippets are run in IEx unless otherwise specified.
Last updated