It finally feels like I’ve got some time to catch up on my reading - though I am sure lots of people will be wondering the same: what are the most up-to-date Phoenix books and courses in 2022?
Is it still worth reading Programming Phoenix first or better to wait until it’s updated? Or is it better reading the guides and them jumping in to Programming Phoenix LiveView (which I think is the most recent Phoenix book).
I just reached out to Mike at Pragmatic Studio and he said they are working on an update of their courses for Phoenix 1.6 and LiveView 0.17 and it should be out soon. But for now, it is based on older versions. That said, their course is EXCELLENT and was worth every penny. I took both the Elixir and Phoenix LiveView Pro courses.
Another resource is Groxio. They have released new videos for LiveView 0.17.
I have been struggling to find up-to-date resources, so I’m hoping there will be more resources posted.
I’m going through Programming Phoenix LiveView after taking a hiatus from Elixir while working on other projects and I am enjoying it. It covers a lot of the Phoenix fundamentals for a good refresher from Programming Phoenix (which I read before a version was included ie 1.4) as well as recent updates (phx.auth.gen).
It also has a recent beta update on LiveView Components which is what I wanted to catch up on since I decided PETAL for my next project and while browsing the petal_components and LiveBeats source code - I realized I was pretty behind on the community’s progress the past year+.
@AstonJ, not PR worthy but it’s just me getting used to other docs. Both framework is quick with setting up, one area I’m slightly confused (from newbie’s perspective) is with liveview upload, with this part:
Allow uploads
You enable an upload, typically on mount, via allow_upload/3:
@impl Phoenix.LiveView
def mount(_params, _session, socket) do
{:ok,
socket
|> assign(:uploaded_files, [])
|> allow_upload(:avatar, accept: ~w(.jpg .jpeg), max_entries: 2)}
end
which file should we put that? I’m pretty sure I missed lots of details cause I glanced over.