dwyl / technology-stack

🚀 Detailed description + diagram of the Open Source Technology Stack we use for dwyl projects.
288 stars 26 forks source link

Phoenix LiveView Compatibility ? #68

Closed nelsonic closed 2 years ago

nelsonic commented 6 years ago

Chris McCord (creator of Phoenix) recently demoed an "in-development" feature called "LiveView": https://dockyard.com/blog/2018/09/12/liveview-project-at-elixirconf-2018 image https://youtu.be/Z2DU0qLfPIY (seriously, watch it!)

It has the potential to be game-changing in how Realtime Apps are built! 🚀 seriously, this will leave MetorJS for dust and make most ReactJS apps obsolete! (cc: @rub1e ... 😉) However is still very much "pre-alpha" ... ⏳

As it comes from Chris, it will almost certainly gain instant adoption in the Elixir/Phoenix Community! (beyond the fact the functionality is incredible, the "author effect" will play a huge role in traction!)

How can we Use it?

How can we proactively support it in our "new stack" #67 so that we can easily build realtime apps without writing any JS code! 😮

Note: I'm aware of the limitations (an internet connection is required for server-side re-rendering) so it won't be applicable to all of our apps, but it's perfect for building "Auth" (user registration, login & reset-password) which requires a connection by definition. Another awesome usecase is "Admin" where seeing data being updated/edited in real-time would be sick!

Question: Does this Replace autoform?

On the surface LiveView "overlaps" with autoform which automatically renders forms based on Ecto Schema. However as epic as LiveView looks, we are building autoform now (not sitting on our hands waiting for LiveView to be "stable" ...)

https://github.com/chrismccord doesn't have anything resembling "LiveView" in his recent GitHub history ... so it looks like it isn't available yet ... 🙄

I say we "keep an eye" on this and a soon as LiveView is in a useble state we investigate it.

Related to #67 (extending PETE for rapid prototyping standards-compliant beautiful apps!)

nelsonic commented 6 years ago

This ElixirForum thread is the best place to "watch" this: https://elixirforum.com/t/phoenix-liveview-info/16569

SimonLab commented 5 years ago

This looks great! I can see also how it can replace some Elm code. We could also see how to adapt autoform to be able to use it with LiveView

nelsonic commented 5 years ago

@SimonLab I can see us using LiveView for all the "online" code and then enhancing our apps (PWAs) with Offline Capability wherever we need it. For "Admin" views where being online is essential it's going to be sweet! 🍭

SimonLab commented 5 years ago

It looks like liveView is doing some progress:

SimonLab commented 5 years ago

"Phoenix.LiveView: Interactive, Real-Time Apps. No Need to Write JavaScript." https://dockyard.com/blog/2018/12/12/phoenix-liveview-interactive-real-time-apps-no-need-to-write-javascript

nelsonic commented 5 years ago

@SimonLab exciting! 🎉 When this is released it's going to be amaze!

nelsonic commented 2 years ago

GOTO: https://github.com/dwyl/phoenix-liveview-counter-tutorial