July 2021
Intermediate to advanced
176 pages
4h 14m
English
We are going to create an application called sender and pretend that we are sending emails to real email addresses. We are going to use the Task module later to develop some of its functionality.
First, let’s use the mix command-line tool to scaffold our new project:
| | $ mix new sender --sup |
This creates a sender directory with a bunch of files and folders inside. Notice that we also used the --sup argument, which will create an application with a supervision tree. You will learn about supervision trees later in this chapter.
Next, change your current directory to sender with cd sender and run iex -S mix. You should see some Erlang version information and the following message:
| | Interactive Elixir (1.11.0) ... |
Read now
Unlock full access