Passion in coding software architectures

New to Elixir?  

All Articles

Understanding Phoenix LiveView: build a Gallery app

In this article we see how to build a Gallery app with Phoenix LiveView and implement an automatic slideshow with the help of :timer.
Alvise Susmel
11 min read

The Primitives of Phoenix LiveView

Focus on LiveView's primitives: the bricks we need to know to building a real-time app with this technology. We take a special look at...
Alvise Susmel
5 min read

How to Setup Phoenix LiveView

how to get started with Phoenix LiveView by creating a new Phoenix app and going through the LiveView setup
Alvise Susmel
3 min read

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

Hashing a File in Elixir

What is a hash function and how to calculate the hash strings and files in Elixir, using functions in :crypto module and Elixir Streams
Alvise Susmel
3 min read

Elixir Stream and large HTTP responses: processing text

Part 1 – Elixir Stream to process large HTTP responses on the fly Part 2 – this article You find the code, of this...
Alvise Susmel
11 min read

Elixir Streams to process large HTTP responses on the…

Transforming an HTTPoison async response into an Elixir Stream, to easily process large remote files on the fly, gaining code clarity and reusability.
Alvise Susmel
5 min read

The Primitives of Elixir Concurrency: a Full Example

We see how to fully implement concurrent HTTP calls, using just spawn, send and received along with HTTPoison. We then refactor our code using...
Alvise Susmel
6 min read

Hey Process, there is a Message for you!

Messages are a fundamental part of concurrency in Elixir. In this article we see how messaging and mailboxes . With messages we can
Alvise Susmel
5 min read