Sealas' auth part 3: custom ecto types, auth tokens, ... guards in Elixir 1.6

From back-end OTP app into a Phoenix 1.3 app, Part 1

In this episode, we migrate StatWatch, a purely back-end OTP app into a new Phoenix 1.3 project in the following phases:

Generate the Phoenix app Copy StatWatch into the Phoenix app https://youtu.be/DSpKssTF60cMake some small improvements

Add it and its child worker to the supervision tree Organize the app into Phoenix 1.3 Contexts Hook it up to the DB Set up some basic CRUD

In Part 2, we’ll set up an auth system, sessions, put the remaining pieces together and do some styling.

You can see the finished project at http://statwatch.me

Shameless plug: Check out @elixirstatus' other community project:

Credo, a new static code analysis tool that acts as a code linter, but also focusses on teaching coding practices and code consistency.