elixir

Elixir School: OTP Distribution

This post is pulled from this Elixir School lesson [https://elixirschool.com/en/lessons/advanced/otp-distribution/]. Did you know that Elixir School is an awesome open-source Elixir curriculum that YOU can contribute to today?! Help us grow the Elixir community by making it more beginner-friendly and resource rich. Check out…

Improving UX with Phoenix Channels & React Hooks

This is a guest post by Alex Griffith [https://www.linkedin.com/in/alexgriff], originally published on the Flatiron Labs blog [https://medium.com/flatiron-labs]. Alex is an engineer at The Flatiron School. He is also an incredibly talented teacher who happens to have a hilarious twitter handle [https://twitter.…

Testing External Requests in Elixir? Roll Your Own Mock Server

What should you do when testing Elixir code that makes web requests to an external API? We don't want to let our code make those requests during a test run––we'll slow down our tests and potentially use up API rate limits. We could mock such…

Run Ecto Migrations in Production with Distillery's Boot Hooks

You need to run you're migrations with the production release of your Elixir app, in your production environment. You can't use mix! You can use Ecto Migrator. Read on to find out how to run your Ecto migrations in production using Distillery's Boot Hooks.…

JWT Auth in Phoenix with Joken

JSON Web Tokens [https://jwt.io/introduction/], or JWTs, allow us to authenticate requests between the client and the server by encrypting authentication information into a secure, compact JSON object that is digitally signed. In this post, we'll use the Joken [https://github.com/bryanjos/joken] library to…