June 2022
Intermediate to advanced
130 pages
2h 45m
English
One of the tools you installed is mix. This build tool is like rake for Ruby, ant for Java, or make for C. It’s the tool we’ll use to compile programs, run tests, fetch dependencies, and create projects. When you use Elixir, knowing mix is a must. Let’s create our first project:
| | [elixir] ➔ mix new hello |
| | * creating README.md |
| | * creating mix.exs |
| | * creating lib |
| | * creating lib/hello.ex |
| | * creating test |
| | * creating test/hello_test.exs |
| | ... |
| | |
| | Run "mix help" for more commands. |
| | |
| | [elixir] ➔ cd hello |
| | [hello] ➔ |
We created a project, and Mix generated several files. I’ve shortened that list here a little bit, but you get the idea. Elixir will create the same project structure each time, with a few additions. That means ...
Read now
Unlock full access