Basic
·
13 items
StatWatch is a project that shows off some of Elixir's more unique strengths like using GenServers for running repeated, scheduled tasks right from the web server without needing a separate cron job or external service. It branches off from episode 11 of the [Getting Started](/series/getting-started) series, builds a simple Elixir worker to regularly fetch a YouTube channel's stats via JSON, another get Alexa site ranking data via XML and connects them to a database. Finally, it goes through creating a Phoenix 1.3 app and using the previously-built modules in it, adds users, auth, pagination and more.
Note: Most of this project can still be followed along with, but Alexa data is no longer available and Phoenix has had a few (though fortunately not too many) breaking changes since v1.3. If you follow this series, I suggest choosing another site to fetch stats from in place of Alexa. You'll still be starting first with the EEx-style templates in the tutorials since that's all that's built into Elixir, but you can try converting them to LiveView after creating the Phoenix app if you choose to use the current version instead of version 1.3.