25 Nov 2018
While working on a phoenix application, I found the need to hang onto some
state between API calls. It wasn’t quite enough state, and losing the state
wasn’t exactly a huge loss, so I decided to use Elixir’s
To ensure my state was easy to retrieve, I needed to name my
something I’d easily have. As this is a Twilio application, the phone number
being called should do nicely.
21 Nov 2018
While working on a Phoenix app with an API, I felt I was missing out on the
great templating engine offered by Phoenix. Fortunately, the next part of the
application involved writing TwiML, an XML-based DSL built for programming
Taking the example from their docs, the following response would respond with
“Hello, world!” over the phone!
31 Dec 2017
After recently using elixir and phoenix to recreate the API for
an old side project, I wanted to use Ecto’s embedded schemas, a schema
that is not persisted to an underlying table, to validate the JSON coming into
an API endpoint and get a workable domain object for the call before
transforming it into the model persisted for the DB.
We’ll look at how I set up the sign-up and sign-in endpoints using the embeded
schemas to validate the incoming JSON.
23 Jan 2016
This is part 3 of our series. You can find part 1
and part 2
This post’s topic is unit testing. We’ll be using Mocha,
Chai, and Sinon.JS. Everything will be run with
Karma on PhantomJS, so we will be able to run this
easily on a CI server such as Travis or Jenkins.
10 Jan 2016
This is part 2 of our series. Click here if you need to read part 1.
Now that we have our project set up, we can start building our application.