5 ms·
Looks interesting but I am not interested in making timelines .. is this Phoenix framework general enough to make arbitrary real time web apps?
by darepublic 7y ago
Looks interesting but I am not interested in making timelines .. is this Phoenix framework general enough to make arbitrary real time web apps?
- rglover 7y agoYes, think of it like Rails for the Elixir language. Phoenix -> Elixir Rails -> Ruby
- bostonvaulter2 7y agoBut without requiring all of the ActiveSupport patches to the base language!
- chrismccord 7y agoAbsolutely. We have extremely varied usage in the wild. From sports/content websites with tens of millions of users (bleacher report, cars.com), to folks running social/chat services with millions of persistent connections, to folks running Phoenix on embedded systems. And as you would expect, there's a ton of "boring business app / JSON API" usage in there as well, so we have a good story about generalized use. The goal of the screencast, as I outlay in the beginning is to show how easy LiveView makes it to build interactive and real-time applications, and a social timeline was a decent way to do that ¯\_(ツ)_/¯
- rupurt 7y agoHappy LiveView user here :) Can confirm it can be used in many scenarios. One of my favorites is streaming realtime data to a chart. I serialize my data as JSON in the LiveView template and read it back in from a Hook. Saves me time by not having to create a separate API endpoint. e.g. <div phx-hook="MyChart" data-days="<%= Jason.encode!(days(@balances)) %>" data-amounts="<%= Jason.encode!(amounts(@balances)) %>" > <div phx-update="ignore"> </div> </div>
- cultofmetatron 7y agoI'm currently using it to make a restaurant POS. It's very flexible. Everything composes like lego pieces in a very clean and straightforward way with surprisingly little magic.
- deleted 7y ago[deleted]
- nathan_long 7y agoYou can see some other examples of LiveView apps at https://phoenixphrenzy.com/results https://phoenixphrenzy.com/results
- zem 7y agoi'm currently using it to make a board game where updates are pushed live to everyone. it's the most pleasant experience i've ever had writing a webapp.