Thank you Tensor. More Elixir/phoenix projects please..
@cristianocarvalho63214 жыл бұрын
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.
@TensorProgramming4 жыл бұрын
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.
@yunglandia97174 жыл бұрын
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?
@TensorProgramming4 жыл бұрын
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
@nasrulhamid11445 жыл бұрын
6:49 i think this config should have been handled by line #54 on the same file.
@diegoahumada1515 жыл бұрын
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!!
@TensorProgramming5 жыл бұрын
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.
@diegoahumada1515 жыл бұрын
@@TensorProgramming I just fixed it, I had an error. Thanks for the video, very helpful
@TensorProgramming5 жыл бұрын
@@diegoahumada151 glad you found the solution. Cheers mate.
@greyabeing4435 жыл бұрын
do the previous tutorials still work with newer elixir versions or are deprecated?
@TensorProgramming5 жыл бұрын
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.
@greyabeing4435 жыл бұрын
@@TensorProgramming Thank You I been enjoying learning elixir
@hubstrangers34505 жыл бұрын
Thank you
@diegoahumada1515 жыл бұрын
how can i run it in an specific IP? i want to try to use it with 2 laptops
@TensorProgramming5 жыл бұрын
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.
@VanderleiRobertoMoretto5 жыл бұрын
How about a second part, with user authentication, and secret chat?
@TensorProgramming5 жыл бұрын
I've got a livestream with authentication that you can checkout. A "secret" chat would just involve making a plug for specific users.
@amedeoss5 жыл бұрын
i have a good idea , how about elixir , and flutter in one project