Skip to content

Archive for April 2019

Creating Your First Mix Project

Creating an Elixir mix project is really easy. A mix project provides some basic structure, sets up a unit testing framework, and can grow with you. When Elixir is installed, it registers a mix command. I create a new project named playing with the command mix new playing. This is what happens: There are two…

Read More

Running an Elixir File as a Script

Elixir is able to run “scripts” or files that are compiled into memory (not on disk) and executed. This is helpful when experimenting with larger Elixir code snippets. This is also helpful if you just want to occasionally run one-off scripts to perform some work and exit. File: my_test_script.exs To execute the file, from a…

Read More