From the course: Elixir 101: Essential Functional Programming Techniques
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Brief introduction to Mix, the Elixir build tool - Elixir Tutorial
From the course: Elixir 101: Essential Functional Programming Techniques
Brief introduction to Mix, the Elixir build tool
- [Instructor] Before we complete this course, I'd like to discuss Mix. We touched on Mix in the early chapters of this course, and we've been using it each time we run the course app in the terminal. Mix is the automated build tool for Elixir. It has tasks for creating, compiling, testing, and managing dependencies. For this video, you should be on Branch 10_01b. The core of Mix is a project. Remember when we first created the wizard app by running mix new wizard? Mix created directories and files for our application. Including, a Mix file. It's named mix.exs. You can find it in the wizard directory. The module is named Wizard.MixProject. Then you can see use Mix.Project Use is a macro. It's a method for one module to inject code into another module. In this instance, Wizard.MixProject can use all of the functions within the Mix.Project module. Next, the project is defined. It's given a name in the form of an…