Sanjibukai

Sanjibukai

About LiveView Demo Project on Github

Hi everybody,

I wanted to play a little with Phoenix LiveView.
And I tried the “official” Demo Project on Github..

First I noticed that there are many parts that are actually broken.
The /pacman example doesn’t seem to work (nothing happen upon key presses)
The /snakeexample don’t event load on the browser while nothing seems to happen on the server (there is even nothing in the logs but something’s definitely crashing)

Then, I wanted to find some details about the events supported by LiveView.
For example, there are phx-change, phx-submit, phx-click, phx-keydown etc..
But I don’t find any ressource about all the events available, and also e.g. for the keydown an keyup what are all the keycode available?

I think that LiveView is a huge game-changer and I’m aware of it being relatively new.

Does anyone have more knowledge about where to find more details?

I might be voluntary to try to document some parts once I’d practice enough..

Thank you very much!

Marked As Solved

sfusato

sfusato

The breaking changes that affected Pacman and Snake examples were quite small. You can find the changes in this PR.

Besides the docs suggested above by @PJUllrich, I also find the CHANGELOG extremely helpful to keep tabs on how things are evolving.

Also Liked

PJUllrich

PJUllrich

Author of Building Table Views with Phoenix LiveView

Hi @Sanjibukai,

that can very well be correct. The rate of progress made in the Phoenix LiveView project is quite astonishing and it might very well be that the examples always lack a bit behind the current state of the actual library. If you want to learn about the current state of the project, I recommend reading the documentation in the phoenix_live_view.ex file or the official docs

Last Post!

Sanjibukai

Sanjibukai

Thanks.

I was able to figure out those changes when comparing with other examples.

Good thing for the PR.

And nice idea to look in the change logs since it’s still evolving..

Where Next?

Popular in Discussions Top

New
sergio
There’s a new TIOBE index report that came out that shows Elixir is still not in the top 50 used languages. It also goes on to call Elix...
New
rower687
Hi all, I’ve been reading a lot about the “let it crash” term and how supervising processes and the whole messaging passing make an elixi...
New
nburkley
AWS re:Invent is on at the moment with some interesting announcements. One new feature in particular is the Lambda Runtime API for AWS La...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
Rustixir
Hi everyone, im working on find best language/framework/system for high concurrency, high performance and stable performance after wor...
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42576 114
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement