phoenix-liveview-counter-tutorial
phoenix-liveview-counter-tutorial copied to clipboard
🤯 beginners tutorial building a real time counter in Phoenix 1.7.7 + LiveView 0.19 ⚡️ Learn the fundamentals from first principals so you can make something amazing! 🚀
After modifying the app by moving the code to a separate LiveView Component, as the tutorial suggests: ```elixir defmodule CounterComponent do use Phoenix.LiveComponent # Avoid duplicating Tailwind classes and show...
right now the suggested code to add on the Presence part is ```diff defmodule CounterWeb.Counter do use CounterWeb, :live_view alias Counter.Count alias Phoenix.PubSub + alias Counter.Presence @topic Count.topic + @presence_topic...
`Phoenix LiveView 1.0-rc` recently released! 🎉 Ref: https://github.com/dwyl/learn-elixir/issues/216 # Todo + [ ] Re-write the tutorial from scratch for the latest version! 🧑💻 + [ ] Make any necessary updates....
I am adding a link to a site that - upon me - explains LiveView very nicely. The best I've seen so far. Worth reading and keeping. For example, it...
Adding these classes to the safelist in assets/tailwind.config.js makes them work. I could not find another way to get it work. This is also covered in https://elixirforum.com/t/using-generated-class-names-in-tailwind-under-phoenix-1-7/57995 ``` safelist: [...
Total elixir newbie here (so my ignorance is pretty high, but maybe this is a useful perspective). > Invoking CounterWeb.Endpoint.broadcast_from sends a message from the current process self() on the...