elixir

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 requests with the help…

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. The Problem Coming from a Rails…

JWT Auth in Phoenix with Joken

JSON Web Tokens, 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 library to implement JWT auth in a Phoenix app. We'll focus on JWTs…

Listen to Steven. Learn Elixir.

Wondering what's with all the hype about this new-fangled programming language, Elixir? Check out my friend, former co-worker, future co-worker and all-around smart guy Steven Nuñez talk about why you should learn Elixir! http://therabbithole.libsyn.com/68-why-not-use-elixir The Rabbit Hole is an excellent programming podcast btw and I recommend…

Check Out my Empex Talk on Phoenix Channels: The Right Way to Track Users in Real-Time

I attended Empex last year for the first time. Empex is an awesome, dynamic, inspiring, one-day Elixir conference. As an Elixir newbie, I had no idea what anyone was talking about. And I hated it! (Okay, I kind of loved it). It really gave me a kick in the butt…