Phoenix

Using Select2 with Phoenix LiveView

Come up with a workaround to make LiveView play together with a JavaScript library like jQuery Select2.
Alvise Susmel
6 min read

Phoenix LiveView live_link

How to use live_link and understand when to use live_link and when live_redirect. Inspecting the messages between LiveView and the browser.
Alvise Susmel
3 min read

Phoenix LiveView – Change the URL without refreshing the…

Phoenix LiveView pushstate support bring the ability to change the URL without refreshing the page. This functionality is pretty
Alvise Susmel
6 min read

Add a Progress Bar in the Phoenix File Upload…

Import jQuery in a Phoenix app. Build a progress bar while sending a multipart form with Ajax and handling JavaScript upload progress events.
Alvise Susmel
9 min read

Creating Thumbnails of uploaded Images and PDF in Phoenix

We see how to create thumbnails of Images and PDFs in Elixir and Phoenix, using ImageMagick and Mogrify.
Alvise Susmel
10 min read

Dealing with long-running HTTP Requests and Timeouts in Phoenix

When processing a HTTP request takes too long, Phoenix closes the connection. In this article we see how to simulate a long-running request and...
Alvise Susmel
4 min read

Step-by-Step Tutorial to Build a Phoenix App that Supports…

A step-by-step tutorial we see in depth how to build a Phoenix app from scratch, letting users upload their files using a multipart form....
Alvise Susmel
16 min read

Connecting Elixir Nodes with libcluster, locally and on Kubernetes

We are going to see how to cluster Elixir and Phoenix nodes with libcluster, locally and on Kubernetes using containers.
Alvise Susmel
4 min read

Distributed Phoenix Chat with PubSub PG2 adapter

In this article we see how to cluster Phoenix Chat nodes, using distributed Elixir. We see how pg2 works and inspect how Phoenix efficiently...
Alvise Susmel
6 min read

Distributed Phoenix Chat using Redis PubSub

In this article we'll see how to scale horizontally the Phoenix Chat app, using Redis and a Phoenix PubSub adapter.
Alvise Susmel
3 min read

Create a High-Availability Kubernetes Cluster on AWS with Kops

In this article we see how to create a High-Availability Kubernetes cluster on AWS with Kops and deploy a Phoenix Chat application.
Alvise Susmel
12 min read