Re:How I built an app with 500,000 users in 5 days on a $100...
by hartator on Thursday July 21, 2016 @06:18AM
(#12135875)
Anyone knows the same thing for elixir/phoenix?
[ Parent
| on HN ]
Re:How I built an app with 500,000 users in 5 days on a $100...
by andy_ppp on Thursday July 21, 2016 @06:43AM
(#12135964)
Yes, it's a pain and particularly the user authentication solutions are very complex. The best I have found is this example but it's 100% not a starting point as the first thing you'll have to do is rename everything!
Re:How I built an app with 500,000 users in 5 days on a $100...
by akshatpradhan on Thursday July 21, 2016 @10:38AM
(#12137131)
>Yes, it's a pain and particularly the user authentication solutions are very complex. https://github.com/hassox/phoenix_guardian
This is why I don't see the point of moving over to Elixir. Rails has ready-to-go and battle tested "modules" that you can pop in and go.
If I used Elixir now, I would have to wait for the community to build something battle tested or I can home-roll my own Elixir authentication. The Poster above just said, "It's a pain particularly user authentication."
Re:How I built an app with 500,000 users in 5 days on a $100...
by im_down_w_otp on Thursday July 21, 2016 @03:12PM
(#12139265)
I maintain that a web framework is probably one of the least interesting things that's enabled by a language like Elixir, a VM like BEAM, and a foundation like OTP... but... for whatever reason web frameworks have become the criteria by which we seem to measure languages these days.
That said. A chat application is really, really well-suited to Elixir.
Re:How I built an app with 500,000 users in 5 days on a $100...
by andy_ppp on Thursday July 21, 2016 @02:05PM
(#12138750)
It's definitely a lot harder to move to Elixir and Phoenix but I've enjoyed learning FP and Elixir a lot; I've done it mostly to challenge myself and it's informed my programming in other languages.
Re:How I built an app with 500,000 users in 5 days on a $100...
by sotojuan on Thursday July 21, 2016 @11:55AM
(#12137679)
Really? The user authentication in the book Programming Elixir was pretty simple and straight forward—is that not "production ready"? Authorization seems like a simple plug away.
Re:How I built an app with 500,000 users in 5 days on a $100...
by brightball on Thursday July 21, 2016 @08:45AM
(#12136438)
For a second I thought that was a plugin before I realized it was a sample application.
Re:How I built an app with 500,000 users in 5 days on a $100...
by andy_ppp on Thursday July 21, 2016 @09:23AM
(#12136648)
Yes, I think the Phoenix guys would rather you forwarded to an OTP app than build a mechanism for plugins.
I think no-one builds their apps this way yet so maybe it needs more explanation.
Re:How I built an app with 500,000 users in 5 days on a $100...
by felixgallo on Thursday July 21, 2016 @12:40PM
(#12138055)
I find this thread a little confusing. That sample application is using Ueberauth (https://github.com/ueberauth) which appears to be a rich plugin-based authentication framework with many preexisting plugins. You don't run the sample application, you use the framework.
Re:How I built an app with 500,000 users in 5 days on a $100...
by andy_ppp on Thursday July 21, 2016 @02:01PM
(#12138733)
The point is it's not fantastically quick to drop in, in the example app look at the UserFromAuth helper - it's definitely not simple and contains a load of gotchas I'd struggle to deal with from the ueberauth documentation.
The grand parent was asking about a template/hackable starter kit with batteries included. That setup of ueberauth is the best I've found sadly.
Re:How I built an app with 500,000 users in 5 days on a $100...
by MasterScrat on Thursday July 21, 2016 @08:47AM
(#12136445)
Or any python-based solution?
Re:How I built an app with 500,000 users in 5 days on a $100...
by mattwinslow on Thursday July 21, 2016 @11:04AM
(#12137318)
https://github.com/pydanny/cookiecutter-django is fairly similar in terms of providing a good jump start for django development.
Re:How I built an app with 500,000 users in 5 days on a $100...
by creeble on Thursday July 21, 2016 @11:38AM
(#12137557)
A quick thanks for that one!
Re:How I built an app with 500,000 users in 5 days on a $100...
by thro1237 on Thursday July 21, 2016 @11:44AM
(#12137593)
Any flask based ones?
Re:How I built an app with 500,000 users in 5 days on a $100...
by sikhnerd on Thursday July 21, 2016 @01:40PM
(#12138566)
https://github.com/mjhea0/flask-boilerplate might fit the bill, not as comprehensive though.