Subscribe for only $15 to access all of our content
In this episode we'll take what we did in Charts with Chart.js Part 1 and build on it. Let's take advantage of Phoenix and use Channels to make our chart update in realtime.
In Part 1 of this series we’ll set the foundation by building a simple chart using the chart.js library. Our chart will display a static count of our movie genres.
Gravatar is a great way to easily display avatars. In this episode we’ll create simple helper function that we’ll use to display a user’s Gravatar.
In this episode we take a look at guards and how we can use them in Elixir. We’ll start by using guards with functions to see how they work. Then we’ll extract them into custom guards with defguard.
In this episode we’ll learn about three different control structures in Elixir: if/else, case, and cond. If you’re new to Elixir or just learning programming this is a great episode to start with.
Elixir Agents are used to manage state. In this episode we’ll learn how we can use an Agent to update and retrieve some state of our own.
In this episode we look at one of the great features of Ecto - composability. We’ll add a query into an existing filter to see how easy it is to compose queries in Ecto.
In part 6 we experiment with OTP to see how we can make our inventory import more resilient. Then we’ll use the power of concurrency in Elixir to speed up our inventory import.
Now that our interface is working, we turn our attention to making sure our inventory it displays is current. We’ll create a custom Mix Task that we can run to import and update our inventory.
In part 4 we work on some improvements to our interface. We’ll add pagination, use Ecto to ensure we’re only displaying the cars we want to. Then we’ll see how helper functions can be used in our templated.
In part 3 we tackle URLs. We create a new URL structure to go along with our new app. Then we use Plug to create a custom redirect module to handle traffic to the old URL structure.
In part 2 of our series we take our existing data and determine how to structure it inside our Elixir application.