Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phoenix LiveView Compatibility ? #68

Closed
nelsonic opened this issue Nov 9, 2018 · 7 comments
Closed

Phoenix LiveView Compatibility ? #68

nelsonic opened this issue Nov 9, 2018 · 7 comments
Labels
discuss Share your constructive thoughts on how to make progress with this issue enhancement New feature or enhancement of existing functionality help wanted If you can help make progress with this issue, please comment! question A question needs to be answered before progress can be made on this issue technical A technical issue that requires understanding of the code, infrastructure or dependencies

Comments

@nelsonic
Copy link
Member

nelsonic commented Nov 9, 2018

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 nelsonic added enhancement New feature or enhancement of existing functionality help wanted If you can help make progress with this issue, please comment! question A question needs to be answered before progress can be made on this issue discuss Share your constructive thoughts on how to make progress with this issue technical A technical issue that requires understanding of the code, infrastructure or dependencies labels Nov 9, 2018
@nelsonic
Copy link
Member Author

nelsonic commented Nov 9, 2018

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

@SimonLab
Copy link
Member

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
Copy link
Member Author

@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
Copy link
Member

It looks like liveView is doing some progress:

@SimonLab
Copy link
Member

"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
Copy link
Member Author

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

@nelsonic
Copy link
Member Author

nelsonic commented Jun 4, 2022

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

@nelsonic nelsonic closed this as completed Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Share your constructive thoughts on how to make progress with this issue enhancement New feature or enhancement of existing functionality help wanted If you can help make progress with this issue, please comment! question A question needs to be answered before progress can be made on this issue technical A technical issue that requires understanding of the code, infrastructure or dependencies
Projects
None yet
Development

No branches or pull requests

2 participants