logo
  • Start here
  • Episodes
  • Articles
  • Log in
  • Sign up

From backend OTP app to Phoenix app

Topics:
StatWatch
Contexts
Supervision
Phoenix 1.3
OTP

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

  1. Generate the Phoenix app Copy StatWatch into the Phoenix app Make some small improvements
  2. Add it and its child worker to the supervision tree
  3. Organize the app into Phoenix 1.3 Contexts
  4. Hook it up to the DB Set up some basic CRUD

In Part 2, we'll set up login/log out functionality via sessions, store the current user in a plugable auth controller and build out a template to display stats.

Share

Request a free email course
Back to index

No Comments

Log in to leave a comment
Alchemist Camp 2017-2020
Hosted on Digital Ocean
Terms and Conditions