Live data from Hacker News

Build a real-time Twitter clone with LiveView and Phoenix 1.5

phoenixframework.org

161–170 of 249 posts

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#161

Lack of built in user authentication kills this project for me, that's just something I don't want to deal with building my own anymore after django.

Not built-in, but you look up several great projects for auth or use something like Auth0.

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#162

Congratulations Chris, Jose and the Phoenix core team on Phoenix 1.5 and the livedashboard. I used liveview in https://readastorytome.com . I posted it here last week and it stayed on the front page for a good few hours. I was concerned about load, so before I posted it I upgraded my $5 DO box to a 4 core box which turned out to be completely unnecessary. The CPU load stayed in the 2-3% range the entire time it was o…

Are the people videos streamed via LiveView as well? Super impressive. Congrats!

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#163
post #61

Earlier quoted context omitted.

> And once you start thinking interms of functions, you just won't touch any of those terrible OO programming paradigms Also worth noting (because Elixir was strange and new for everyone at some point) that a lot of what used to be mind-boggling to me in earlier versions of Elixir/Phoenix have become relatively commonplace when dealing with things like React or modern Javascript. If you've ever handled a JS promise f…

Unlike a Promise, I hope you can cancel processes in Elixir

You can kill them. Just like processes on your computer!

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#164

Lack of built in user authentication kills this project for me, that's just something I don't want to deal with building my own anymore after django.

We are actually working on a `mix phx.gen.auth` generator. Check Dashbit's blog about it:

https://dashbit.co/blog/a-new-authentication-solution-for-ph...

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#165

Congratulations Chris, Jose and the Phoenix core team on Phoenix 1.5 and the livedashboard. I used liveview in https://readastorytome.com . I posted it here last week and it stayed on the front page for a good few hours. I was concerned about load, so before I posted it I upgraded my $5 DO box to a 4 core box which turned out to be completely unnecessary. The CPU load stayed in the 2-3% range the entire time it was o…

Are the people videos streamed via LiveView as well? Super impressive. Congrats!

No - video stream is webrtc, pdf viewer is pdf.js

We use liveview + hooks(where necessary) for all of the interactive parts on the site, switching pages, changing books etc...

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#166

Earlier quoted context omitted.

Static typing is far from a panacea. Don't forget that the rise of Perl and PHP, and then later Ruby and Python was in response to statically typed languages like Java. There are trade-offs.

One of the things I like about Guards is that you can enforce/match against types as needed.

Guards are nice, but compared to static typing, they a run time check whereas static typing alerts you to errors at compile time.

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#167

I have been watching Phoenix/Elixir for a while and wondering if it has gained a lot more traction compared to say 2 years ago ? My choice of full web app framwork is Symfony/Laravel (PHP) or Python (Flask/Django) but I really like what Phoenix has to offer. However, does it have a mature ecosystem now ? What about deployments and tools around it ? Does it work with generic web servers like Nginx or does it run its o…

I run a Crypto arbitrage service www.coinvana.in built with phoenix and deployment consisting of digital ocean, nginx, ssl, mix releases, github actions among other things. At this moment, I just git push my updates to github and all pieces of deployment are taken care of.

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#168

Lack of built in user authentication kills this project for me, that's just something I don't want to deal with building my own anymore after django.

The Phoenix Ecosystem has solutions for authentication and authorization.

ueberauth is one of the most fully featured with support for a ton of different authentication schemes (https://github.com/ueberauth/ueberauth)

But there are lots of other things that integrate with Phoenix / Plug (https://github.com/h4cc/awesome-elixir#authentication)

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#170

Earlier quoted context omitted.

One of the things I like about Guards is that you can enforce/match against types as needed.

Guards are nice, but compared to static typing, they a run time check whereas static typing alerts you to errors at compile time.

Guards are mostly used to do pattern matching, not to specify which types a function accepts, though you can use them as such.
Post reply on HN