Now I want to put this all together using Elixir's build tool
mix. It should setup some nice conventions for me and make much more productive building apps in elixir!
mix new fizzbuzz --module FizzBuzz
I had to pass the module option to have it named
FizzBuzz instead of the default of
I copied over my fizzbuzz module to the
lib directory and my test to the
mix test and everything looked great.
mix test ..... Finished in 0.04 seconds (0.04s on load, 0.00s on tests) 5 tests, 0 failures Randomized with seed 512644
Tested out the app in IEX
iex -S mix Erlang/OTP 18 [erts-7.0] [source] [64-bit] [smp:2:2] [async-threads:10] [kernel-poll:false] Interactive Elixir (1.0.5) - press Ctrl+C to exit (type h() ENTER for help) iex(1)> FizzBuzz.start [1,2,3,5,15] 1 2 Fizz Buzz FizzBuzz [:ok, :ok, :ok, :ok, :ok] iex(2)>
I'm pretty pleasantly surprised how easy it was to move this all over into a
mix project and get going. Cudos on the tooling!