HackerTube

Build a real-time Twitter clone in 15 minutes with LiveView and Phoenix 1.5

Chris McCord7 HN recommenders · recommended in 6 months, 2020–2025
YouTube
tutorial · intermediate · 2020–2025 on HN

Phoenix creator Chris McCord builds a real-time Twitter-style app live with Phoenix LiveView 1.5 in about 15 minutes. It shows interactive, real-time updates without writing JavaScript.

HN points people to it as the demo that shows why LiveView and Elixir are worth a look.

12 comments from Hacker News

@realusername2020-12 · in “Ask HN: Best Talks of 2020?”

My favorite talk is the Live View twitter demo on my case: ▶ this video . Never before I've been so bluffed by a new technology, he's building a small twitter clone in 20min with live reload, browser sync and everything, this would take days with any other traditional tech I know.

Strongly recommends View on HN
@staticelf2020-12 · in “Ask HN: Best Talks of 2020?”

I think the "talk" by Chris McCord should apply here "Build a real-time Twitter clone in 15 minutes with LiveView and Phoenix 1.5", while not really a talk this year was special and the demo completely blew my mind. it's available here: ▶ this video

Strongly recommends View on HN
@realusername2020-12 · in “Ruby 3.0 and the new FiberScheduler interface”

> But I'm wondering if it brings enough other advantages that I shouldn't view it that simplistically. So to start with, Phoenix LiveView really is a game changer, you should have a look at Elixir just for that. This is the talk which really bluffed me when I first saw it: ▶ this video . For the other upsides, I like a little bit better the way everything is architectured in Phoenix, there's much less magic and it's easier to follow the data flow and what is going on.

Strongly recommends View on HN
@dmitriid2023-03 · in “Phoenix Dev Blog – Streams”

Liveview solves the "write a fully dynamic and interactive application with next to zero Javascript that you need to write by hand" or, if you will, "server-driven UI apps". And it's hard to overstate, but to also properly explain, how important this is and how it feels like magic when you do it. Because it lets you tap into everything Elixr (and Erlang VM) have to offer on the backend without ever having to think of "how the hell do I bring all that to the client". My use-cases are: a big chunk of data is being processed, and while its being processed regular updates are sent over PubSub. Most actions a user initiates are long-ish-running and their updates are also sent over PubSub. Things that other users are doing are sent over PubSub and possibly need to be reflected in the UI. In "traditional" JS-on-the-client-whatever-on-the-server model you have a plethora of questions of how to get that to UI: which endpoints to query, which updates to send over the wire, the formats, the frequence, authorisation, auth... With LiveView your "client" is an Elixir view living on the server which just updates the view based on those PubSubs (or timers, or Kafka streams, or user-initiated actions, or...) and LiveView takes care of upating the DOM/HTML in the browser. "Build a real-time Twitter clone in 15 minutes with LiveView and Phoenix 1.5" will give a good overview of this: ▶ this video [1] Built-in in Phoenix, link

Recommends View on HN
@frellus2021-08 · in “Why Erlang?”

Yes and no. The real answer (with an Erlang bias) is to look at Elixir + Phoenix + LiveView. Here's a neat demo. No JavaScript required. ▶ this video

Recommends View on HN