From back-end OTP app to Phoenix 1.3 app: StatWatch Phoenix Part 1

Опубликовано: 06 Апрель 2026
на канале: Alchemist Camp
1,451
20

Follow me on Twitter to get more tips and tutorials!   / alchemistcamp  

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
Make 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 login/log out functionality via sessions, store the current user in a pluggable auth controller and build out a template to display stats.

The StatWatch development playlist:    • StatWatch  

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