Elixir tools

03-05-2019

iex-tools

Create a new elixir project with supervisor

mix new my_app --sup

iex documentation

https://hexdocs.pm/iex/IEx.html

Go production

mix phx.digest
MIX_ENV=prod mix run --no-halt

Ecto

mix phx.gen.schema Multimedia.Category categories name:string

mix ecto.gen.migrate add_user_id_to_post

mix ecto.migrate

iex> Repo.all from v in Video,
join: u in assoc(v, :user),
join: c in assoc(v, :category),
where: c.name == "Comedy",
select: {u, v}

Authorization

guardian Getting started


Back