Personal Phoenix 1.6 Upgrade Notes
Over the past few days I’ve been upgrading my projects to Phoenix 1.6 and like any project that comes out of a template-based generator, migrating a Phoenix project to a new version can be a little scary and error prone, particularly for people new to Elixir and Phoenix. Today I’ll share some personal notes and tips to hopefully make the process a little smoother.
Deploy Elixir Phoenix to Heroku Containers with Docker
We posted a guide to deploy Elixir and Phoenix to Heroku using the Heroku container stack and Docker. We use Elixir releases, automated database migrations, and set up continuous deployment.
How to divide traffic for A/B Testing - Beginner
How to split traffic between A/B Tests so that the page is chosen at random, but the same page is shown for the return visitor. Beginner tutorial. https://code.krister.ee/ab-testing-in-elixir-phoenix/
Deploy Elixir Phoenix to Render with Continuous Deployment
We published a guide to deploy Elixir and Phoenix to Render with Elixir releases, automated database migrations, and Continuous Deployment. Render provides a streamlined process to deploy many languages and frameworks.
What you should know about Elixir
As Elixir developers at Coletiv, we periodically come face to face with some unexpected challenges and obstacles in our projects and we believe in sharing our solutions with the community.
So, in this post, Pedro shares some important and interesting aspects of Elixir and its frameworks. We hope you enjoy it and find it useful! https://coletiv.com/blog/what-you-should-know-about-elixir-part1/
Phoenix LiveView Tutorial: Handling Connection Errors And Push Notifications With JS Hooks
Did we ever say we were going to use Phoenix LiveView to build a Messenger app with no JavaScript? We lied!!! This time, we’re going to tell you why, how & when you can and should kick in with your JS magic when using Phoenix LiveView. https://curiosum.com/blog/elixir-phoenix-liveview-messenger-part-4
How to upload a file in Elixir with Waffle
The ability to upload files is a key requirement for many todays web and mobile applications. In this tutorial, we will look at how we can accomplish file uploads to local storage and S3 server in Phoenix with the help of Waffle library. https://curiosum.com/blog/how-upload-file-elixir-waffle
#myelixirstatus #Wafflelibrary
How to Do Live Uploads in Phoenix LiveView
Discover how to do live file uploads with LiveView, so that you can easily build forms.
https://blog.appsignal.com/2021/10/12/how-to-do-live-uploads-in-phoenix-liveview.html
ThinkingElixir 068: Rust and Elixir with Nik Begley
In episode 68 of Thinking Elixir, we talk with Niklas Begley about his Doctave service and the problems it’s solving. From there we cover why they use Rust for a key piece of the service and how Elixir fits in. We cover tools like Rustler for integrating Elixir and Rust smoothly. We talk about business drivers, Nik’s experience building a SaaS product using Elixir and more!
https://thinkingelixir.com/podcast-episodes/068-rust-and-elixir-with-nik-begley/
Deploying a Phoenix 1.6 app with Docker and Elixir Releases
My new tutorial about deploying Phoenix 1.6 with Docker and Elixir Releases
https://dev.to/miguelcoba/deploying-a-phoenix-1-6-app-with-docker-and-elixir-releases-2la4
Cross-compiling Elixir releases with ASDF and Docker
Elixir releases are self-contained directories, but unfortunately they are not platform-independent. Here is how to cross compile releases with ASDF and Docker.
Deploy Elixir Phoenix to Fly with Continuous Deployment
We go through the steps to deploy Elixir and Phoenix to Fly with Continuous Deployment using GitHub Actions. Fly provides easy multi-region clustering which may reduce latency for Phoenix LiveView apps because you can deploy the application closer to users.
Hot Reloading with Phoenix and Webpack 5
I love hot reloading in it’s various forms, so I wrote about how and why we use hot reloading at Felt. Hopefully it inspires and helps you to use hot reloading as well: https://felt.com/blog/phoenix-and-webpack-hot-reloading-react
The Best Cloud Hosting Providers for Elixir & Phoenix
There are many different cloud hosting providers to choose from, and it can be hard to determine which one is best to take advantage of Elixir’s incredible features. We did some research and determined the four best cloud hosting platforms you should use for your Elixir applications.
Katbin rewritten in elixir
Katbin is a pastebin + URL shortener, recently rewritten using the Phoenix framework. It currently supports the following features:
- Raw pastes
- Pastes rendered as markdown
- URL shortening
- Serverside syntax highlighting
- Works without JS
Try it out: https://katb.in
Github: https://github.com/
Protox 1.6 released
Protox is a library to work with Protocol Buffers. Its primary objective is reliability: we use the conformance checker provided by Google (nearly ~2000 tests!), alongside property testing and mutation testing.
Version 1.6 adds support of JSON, including well-known types (except Any for the time being).
More details: https://github.com/ahamez/protox
Phoenix 1.6 released!
We have a new version of the most popular Elixir framework - Phoenix framework!
New generators, fixes and improvements are now available. Find out more about the new HEEx engine.
How to convert string to camel and snake case in Elixir
Sooner or later you may need to convert a string in Elixir to a camel or snake case. With Macro module (available in Elixir without extra dependency) it’s super easy. https://curiosum.com/til/convert-string-to-camel-and-snake-case-elixir
Load CSS as string using JS & Webpack import prefixes
People will tell you it’s an antipattern, but what if a library needs you to do this?
https://curiosum.com/til/load-css-to-string-with-webpack-raw-loader
How to redirect back to previous page in Elixir & Phoenix?
In this post, you’ll learn how to easily redirect users to the previous path using the Navigation History plug.
It’s super easy! https://curiosum.com/til/how-to-redirect-user-back-in-elixir-phoenix