Create the Playground

Learn to create an Elixir project, view its file structure, and run it.

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 an application with a supervision tree. We will learn about supervision trees later in this chapter.

We enter the command below to see the created project’s tree.

The following is the executable command:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy