Hello again, and welcome to ElixirSips Episode 025: Ecto, Part 2 - Dwitter. In today's episode, we're going to continue our exploration of Ecto by modifying our existing Dwitter webapp we built in Dynamo to use Ecto rather than Amnesia for its persistence layer.

I've tagged this version at https://github.com/knewter/dwitter/tree/episode9 - feel free to clone it there and work through it with me.

Go ahead and fetch the repo:

git clone https://github.com/knewter/dwitter cd dwitter git checkout episode9

Now the first thing we're going to do is rip out the Amnesia dependency. Open up mix.exs and change the deps to the following:

 defp deps do [ { :cowboy, github: "extend/cowboy" }, { :dynamo, "0.1.0-dev", github: "elixir-lang/dynamo" }, { :postgrex, github: "ericmj/postgrex" }, { :ecto, github: "elixir-lang/ecto" } ] end

Now we need to get the dependencies. Since this is based on an older episode, it'll be locked to...