This article will guide you to perform hot code swapping in Elixir using the Elixir package distillery-2.0 (at the moment of writing this article).
A live demo on updating
GenServer state will stand out as a good example.
This episode covers building an Auth Plug. It will let us restrict any action in any controller to only logged-in users or to only admins. We also set up a special function plug for the user controller for restricting actions to the correct user. E.g. users can edit their own accounts but not each others.
Slides and Video for my CodeMesh talk this year.
In this post I will show you a simple pattern to decouple your Phoenix context so that you can specify from your controller how you want to preload your Ecto.Query.
Using UUIDs as primary keys is simple with
migration_primary_key and a simple change to the schema:
At The Flatiron School, we leveraged Elixir’s GenServers and Dynamic Supervisors to “deploy” large amounts of content to our students faster and less error-prone than ever before. https://www.thegreatcodeadventure.com/how-we-used-elixirs-genservers-dynamic-supervisors-to-build-concurrent-fault-tolerant-workflows/
just released hackney version 1.15.0 an HTTP client library. This release add a performance improvement to the pool and an addition to multipart forms handling.
This article is all about Automating Phoenix Development & Deployment using Gitlab CI/CD.
I found how to pattern match a function on Improve error messages for invalid expression in match · Issue #5649 · elixir-lang/elixir.
x = &List.first/1 case &List.first/1 do ^x -> true end
I also wrote a summary for it: How to pattern match a function in Elixir - dsdshome
Feel free to check it out and leave some comments.
Being new to Elixir and Phoenix, I spend quite some time in the projects’ documentation. One thing that stood out for me recently is the first sentence of Phoenix’s Plug documentation: “Plug lives at the heart of Phoenix’s HTTP layer and Phoenix puts Plug front and center.”
So naturally, I felt compelled to take a deeper dive into Plug and understand it better. I hope the article helps you out as well, you can read it here.
Cloak is an encryption library which helps you encrypt your Ecto schema data, and it’s now nearly at 1.0.0!
Whistle is an implementation of an Elm(ish) architecture in the server, letting you write interactive web apps entirely in Elixir.