Phoenix Framework - Building a Chat Room with Phoenix Live View and Server Side Rendering

  Рет қаралды 8,318

Tensor Programming

Tensor Programming

Күн бұрын

Пікірлер
@andibensisva2155
@andibensisva2155 5 жыл бұрын
Thank you Tensor. More Elixir/phoenix projects please..
@cristianocarvalho6321
@cristianocarvalho6321 4 жыл бұрын
Thanks for sharing such useful content. I would love to see a tutorial where we learn how to build private chats but perhaps this would be a too long video or at least you could give some guidelines on how to achieve that.
@TensorProgramming
@TensorProgramming 4 жыл бұрын
It really isn't that difficult. Its just a matter of restricting the chat room to the users who are invited to the private chat. And then if you want like a friends list or something along those lines, its a matter of exposing the presence API to a plug and querying users based on a defined relation. In the future, I am considering doing a bunch of stuff with LiveView and maybe ill build something like this in one of those videos.
@yunglandia9717
@yunglandia9717 4 жыл бұрын
i followed your steps, but it gives me "no route found for POST / (LivechatWeb.Router)" . in the livechat_web, i just import Phoenix.LiveView.Controller in the controller and import Phoenix.LiveView in the view, because i cannot specify the live_render:2, live_render:3 , is this because of the liveview version?
@TensorProgramming
@TensorProgramming 4 жыл бұрын
Its possible that it was a depercation as a result of LiveView updating. To fix the problem just replace the get "/", ChatController, :index line in the router.ex file with resources "/", ChatController
@nasrulhamid1144
@nasrulhamid1144 5 жыл бұрын
6:49 i think this config should have been handled by line #54 on the same file.
@diegoahumada151
@diegoahumada151 5 жыл бұрын
Hi i have a question, when i run it the info in the form username and content disappear after a few seconds and i can't send the message cause the field it's empty, thanks for your help!!
@TensorProgramming
@TensorProgramming 5 жыл бұрын
Looking at it myself, I am not seeing any kind of issue in this regard. Trying cloning the repo from the description and see if you still have the same issue. If thats the case then its either my fault or a problem with the liveview API which has changed since I recorded this video.
@diegoahumada151
@diegoahumada151 5 жыл бұрын
@@TensorProgramming I just fixed it, I had an error. Thanks for the video, very helpful
@TensorProgramming
@TensorProgramming 5 жыл бұрын
@@diegoahumada151 glad you found the solution. Cheers mate.
@greyabeing443
@greyabeing443 5 жыл бұрын
do the previous tutorials still work with newer elixir versions or are deprecated?
@TensorProgramming
@TensorProgramming 5 жыл бұрын
All of them should work, though keep in mind that the first few tutorials use Phoenix 1.2 and the current version is Phoenix 1.4. There were no contexts back then. Between 1.3 and 1.4, there weren't many large changes to the API but between 1.2 and 1.3 there were some fairly large changes to the folder layout and the model structure. I am actually using this video as a bit of a litmus test to see if people want to see a full scale intro to Elixir tutorial series or not.
@greyabeing443
@greyabeing443 5 жыл бұрын
@@TensorProgramming Thank You I been enjoying learning elixir
@hubstrangers3450
@hubstrangers3450 5 жыл бұрын
Thank you
@diegoahumada151
@diegoahumada151 5 жыл бұрын
how can i run it in an specific IP? i want to try to use it with 2 laptops
@TensorProgramming
@TensorProgramming 5 жыл бұрын
Change the port in the dev.exs and the prod.exs files. You can also look at this article: dockyard.com/blog/2016/01/28/running-elixir-and-phoenix-projects-on-a-cluster-of-nodes They talk about how to run phoenix on multiple machines.
@VanderleiRobertoMoretto
@VanderleiRobertoMoretto 5 жыл бұрын
How about a second part, with user authentication, and secret chat?
@TensorProgramming
@TensorProgramming 5 жыл бұрын
I've got a livestream with authentication that you can checkout. A "secret" chat would just involve making a plug for specific users.
@amedeoss
@amedeoss 5 жыл бұрын
i have a good idea , how about elixir , and flutter in one project
@TensorProgramming
@TensorProgramming 5 жыл бұрын
Don't worry, I've already had this idea.
@amedeoss
@amedeoss 5 жыл бұрын
@@TensorProgramming sweet
What Is: Phoenix LiveView
13:44
Underjord
Рет қаралды 3,1 М.
Phoenix LiveView for web developers who don't know Elixir.
22:38
Sigma girl VS Sigma Error girl 2  #shorts #sigma
0:27
Jin and Hattie
Рет қаралды 124 МЛН
Vanilla Dart Chat Application Live Stream
1:41:54
Tensor Programming
Рет қаралды 3,7 М.
Why Phoenix Channels are great
7:11
Restful Coder
Рет қаралды 2,9 М.
Getting Started with Phoenix LiveView (UPDATED)
15:56
The Pragmatic Studio
Рет қаралды 10 М.
Rust Testing and TDD - An Intro to Testing and Test Driven Development
25:46
A Chat Room in 8 Minutes with Phoenix
8:11
Elixir Casts
Рет қаралды 19 М.