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

Where Next?

Popular in Discussions Top

andre1sk
A big advantage to Elixir is all the distributed goodness but for many applications running on multiple nodes having integrated Etcd, Zoo...
New
jeramyRR
This is an interesting article to read. Elixir’s performance, like usual, is excellent. However, it seems like the high CPU usage is co...
New
MarioFlach
Hello, I want to share a project I’ve been working on for a while: https://github.com/almightycouch/gitgud Background Some time ago I ...
New
WildYorkies
It seems that the more I read, the more I find Elixir users speaking about all the ways that Elixir is not good for x, y, and z use cases...
New
lucaong
Hello Elixir and Nerves community, I have been working for a while on an open-source embedded key-value database for Elixir, that I call...
230 13924 124
New
Qqwy
Looking at the stacks that existing large companies have used, WhatsApp internally uses Mnesia to store the messages, while Discord uses ...
New
praveenperera
How We Replaced React with Phoenix By: Thought Bot
New
eteeselink
Hi all, In the last days, two things happened: A blog post titled “They might never tell you it’s broken” made the rounds. It’s about ...
New
Crowdhailer
I’ve been hearing much about the new formatter and it’s something I have been keen to try. I find examples buy far the most illuminating...
248 19204 150
New
AstonJ
I’ve just started the Phoenix part of the utterly brilliant online course by @pragdave. On generating the Phoenix app he uses the --no-ec...
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39297 209
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 126479 1222
New

We're in Beta

About us Mission Statement