Search⌘ K
AI Features

Create the Playground

Explore building an Elixir application scaffolded with a supervision tree. Learn to use mix to create projects and navigate IEx for interactive testing. Understand compiling and recompiling code dynamically while preparing to develop concurrent features using the Task module.

We’ll create an application called sender and pretend to send emails to real email addresses. Later, we use the Task module to develop some of its functionality.

Project creation

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. This creates ...