elixir

16 Articles

Build a Roles and Permissions System for Phoenix - Part 1

Learn how to control access to your system by assigning granular roles and permissions to your users.

Simulate Latency, Jitter, and Package Loss in Phoenix LiveView

Learn how to make your LiveView app more resilient by simulating bad internet connections.

The Complete Guide to Full-text Search with Postgres and Ecto

A detailed deep-dive into efficient full-text search for multiple languages, result ranking, tsvectors and tsqueries, search modifiers, and so much more.

Efficient Name Search with Postgres and Ecto

Search through millions of strings efficiently using indexed ILIKE or SIMILARITY queries.

Prevent overlapping time ranges with Ecto and Postgres

Block overlapping appointments efficiently in your database using exclusion constraints and don't worry about double-bookings ever again!

Optimize Ecto's insert_all with Placeholders

Write more efficient bulk insert queries and avoid sending duplicate data by using placeholders.

The complete guide to Upserts with Ecto

Implement insert-or-update functionality for your schemas directly with Ecto's on_conflict option.

Organize your tests with context tags

Clean up your test configuration and highlight test specifics with dedicated tags.

Import a CSV into Postgres using Elixir

Learn how to dump and analyze large amounts of data from a CSV file into Postgres quickly.

Simulating Conway's Game of Life with 100.000 Erlang Processes

Learn about how to tweak the performance of 100.000 Erlang processes and why Elixir isn't really that slow.

Set up Livebook on your Raspberry Pi with Nerves

Write and test code directly on your Raspberry Pi with Livebook.

Sending text messages from a Raspberry Pi with Nerves

Send a text message using the Waveshare GSM/GPS/GNSS Hat on a Raspberry Pi and Nerves.

How to implement U2F Authentication with Phoenix LiveView

Arguably, the strongest multi-factor authentication method is U2F. Here is how to integrate it with your Phoenix LiveView application.

How to deploy a Phoenix project with Fly.io

Fly.io allows you to quickly deploy a Phoenix application in different regions in the world. Here is how to get started.

Bridge the Gap - Bring your Software to life with Elixir and Nerves

Writing code is fun, but nothing tops seeing your code moving things in the real world. That’s why I tested out the Nerves library.

State Management with Phoenix LiveView and LiveEx

Writing code is fun, but nothing tops seeing your code moving things in the real world. That’s why I tested out the Nerves library.