-
Launch Elixir app with mix
0.5 define
main.ex, usemix run main.ex(duplicates with 2)main.ex:
defmodule Main do Server.main() endserver.ex:
defmodule Server do # no need to import def main do path = Path.join(File.cwd!(), "title.yaml") yaml_list = YamlElixir.read_from_file(path) IO.inspect(yaml_list) end endoutput
server > mix run main.ex Compiling 1 file (.ex) Generated server app {:ok, %{1. Use
iex -S mixormix run -e