April 2019
Beginner to intermediate
244 pages
6h 34m
English
The first step is to create a new Elixir application with the mix tool. A new app needs a lot of boilerplate, but mix new does all the heavy lifting for us:
| | > mix new my_app --sup |
| | * creating README.md |
| | * creating .gitignore |
| | * creating mix.exs |
| | * creating config |
| | * creating config/config.exs |
| | * creating lib |
| | * creating lib/my_app.ex |
| | * creating lib/my_app/application.ex |
| | * creating test |
| | * creating test/test_helper.exs |
| | * creating test/my_app_test.exs |
| | |
| | Your Mix project was created successfully. |
| | You can use "mix" to compile it, test it, and more: |
| | |
| | cd my_app |
| | mix test |
| | |
| | Run "mix help" for more commands. |
Note that we added the --sup ...
Read now
Unlock full access