Installing Comeonin

First we'll need to install comeonin into our Phoenix application through the mix.exs file. We'll also need to include the bcrypt_elixir hex package into our project to provide the hooks into the bcrypt encryption protocol for our password. First, we'll need to modify the mix.exs file in the root of our Vocial application. If you look for the deps function in the file, you'll find a list of tuples that specify the dependencies of our project by their hex package name and the version. Modify that function to include the two new libraries:

  defp deps do    [      {:phoenix, "~> 1.3.0"},      {:phoenix_pubsub, "~> 1.0"},      {:phoenix_ecto, "~> 3.2"},      {:postgrex, ">= 0.0.0"},      {:phoenix_html, "~> 2.10"}, {:phoenix_live_reload, "~> 1.0", only: ...

Get Phoenix Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.