Build a plain simple Ecto app step-by-step

create a new project

Project

create struct

make schema

Validations?

use changeset

create changeset for update

class Base
  def two
    1 + 1
  end
end
defmodule Foo.Bar do
  def three do
    1 + two()
  end

  defp two do
    2
  end

end