For my work #Elixir #PhoenixFramework project we’re going to use #MongoDB as well as #Postgres to ease the migration from one database to the other (using the mongodb_driver package).
Previously on #NixOS I was pulling a Postgres instance into my nix-shell environment but Mongo on NixOS involves compiling from source which is slow.
So I’m now using Podman (https://podman.io/) and Podman Compose with a standard Docker Compose file which also keeps things flexible for co-workers.
#elixir #PhoenixFramework #mongodb #postgres #nixos
German Velasco (not on Mastodon as far as I know) has a really good YouTube channel where he shares a lot of Phoenix and LiveView tips. It’s highly recommended, as is his LiveView testing course (https://www.testingliveview.com/), but today’s video was especially good and he explains how a Phoenix 1.7 LiveView form can use a map rather than a changeset as it’s data source and still display errors: https://youtu.be/a_h2orv7M3U
#myelixirstatus #PhoenixFramework #liveview
I just finished recording what is (probably) the last video of my Build It With Phoenix series (https://builditwithphoenix.com). That means early access pricing will also be ending soon. Go take advantage now if you haven't already! @elixirlang #MyElixirStatus #elixirlang #phoenixframework
#myelixirstatus #elixirlang #PhoenixFramework
Over the weekend I added 7 new videos totaling 29 minutes to my #Elixir and #phoenixframework video course, Build It With Phoenix. More info at BuildItWithPhoenix.com. #myelixirstatus
#elixir #PhoenixFramework #myelixirstatus
Big thanks to @zorn because he mentioned a site last week that allows you to download the variants of Google Fonts you need to self-host them: https://gwfh.mranftl.com/fonts
For my #PhoenixFramework site it was just a case of:
1. Storing the files in priv/static/fonts/
2. Putting the CSS the site generates in assets/css/app.css
3. Adding the named fonts to assets/trailwind.config.js
4. Making sure 'fonts' is in the static_paths/0 function in the site's '...Web' file.
#myelixirstatus #PhoenixFramework
#PhoenixFramework 1.7 is now out of beta: https://phoenixframework.org/blog/phoenix-1.7-final-released
#myelixirstatus #PhoenixFramework
Just updated my work-in-progress project to #PhoenixFramework 1.7.0-rc.3 (released yesterday) and I’m wondering if there is a good way to make sure that all of the changes between the first rc and the eventual full release are picked up. How do people usually track and implement changes in files between version releases?
#myelixirstatus #PhoenixFramework
The more I use them, the more I’m loving #PhoenixFramework’s LiveView Components. Slots and attributes make it all beautifully robust and it’s such a lovely way to compartmentalise HTML. #MyElixirStatus
https://hexdocs.pm/phoenix_live_view/Phoenix.Component.html#content
#myelixirstatus #PhoenixFramework
At some point we should probably stop saying that Phoenix is like Rails. It’s come so far. Gradually, nearly every part has become more streamlined.
#elixir #PhoenixFramework #rails
I've just done the free upgrade to the 2nd edition of the #PhoenixFramework #LiveView course that @mikeclark and Nicole have released and was very pleased to see that we can make a completely optional donation.
As a customer, things like this are a pleasure to do because the value for money and the kindness of not making it a paid upgrade needs to be repaid somehow.
Veey happy to see (via @mikeclark on Twitter… don’t forget about us over here Mike!) that The Pragmatic Studio are working on a big update to their excellent #Elixir #PhoenixFramework course:
“Reached a major milestone on the LiveView course update: Everything’s ready to start filming!
It's been redesigned, top-to-bottom for Phoenix 1.7 and LiveView 0.18. Plus brand new sections on function components, live sessions, Presence, and JS commands.”
https://twitter.com/clarkware/status/1616504190171287565?s=61&t=HnGgm5r8DbXwJvku7jmXNQ
I finally grokked using a schemaless Changeset for a #PhoenixFramework LiveView form where I wanted to fetch JSON data based on the form input, embed that into the form’s Changeset, perform some custom validations on it all, and then save it all as JSON in a field in a database. 😅
I might write it all up as a blog post, if only for forgetful, future me. It all looks terribly simple now but almost every step was something new I needed to learn.
#myelixirstatus #PhoenixFramework
Nice blog post by Mike Clark about formatting #Elixir HEEx templates in VS Code: https://pragmaticstudio.com/tutorials/formatting-heex-templates-in-vscode
#PhoenixFramework #myelixirstatus #elixir
I’m excited to see that the first #PhoenixFramework version 1.7 release candidate is now available: https://phoenixframework.org/blog/phoenix-1.7-released
There are some lovely changes in it and I’m early enough in a project to hopefully make the update relatively easy.
#myelixirstatus #PhoenixFramework