Phoenix Blog Post: Building a Chat App with LiveView Streams

Building a LiveView powered chat app is easier than ever when using Streams! Sophie DeBenedetto shows us how in this article. She createa a Slack-like chat client with infinite scroll back, editing message, deleting messages, and appending new message to the bottom. It’s slick and efficient, not storing any all that data in the LiveView.

7 Likes

Already read this today (one of my dozens RSS subscription). Everyone interested in LiveView and it’s new features should read it.

That’s said you should be aware that the example app on Github isn’t perfect. It has a small mistakes, so that LiveView may give you some errors like duplicate id (for example form input to create and update message). Most of them should be easy to fix in “5 min”.

3 Likes