Re:Deploying v0.11 Phoenix application to Heroku – My first ...
by chrismccord on Wednesday April 22, 2015 @01:54AM
(#9418830)
My ElixirConfEU talk should help answer these questions once it goes live in a few weeks. To answer them now, we have generators, like Rails, for scaffolding resources, except we split them into html and json. So you can do `mix phoenix.gen.html ...` to bootstrap a model, migrations, forms, templates, controller, etc, but you can also do `mix phoenix.gen.json ...` and it will do the same but bootstrap the controller and view for a JSON endpoint. We also ship with live-reloading in development, so you save your Elixir templates, css, js, etc, and the browser reloads/recompiles without a refresh. Outside of those things, our Channels layer that Rails is borrowing from makes it trivial for realtime clients. You don't have to worry about the transport layer (WebSocket/Longpolling/etc) and the client takes care of automatic reconnects. Once 1.1 ships, we also will support replaying missed messages b/w disconnects, which can be time consuming/tricky to get right on your own. Beyond what Phoenix offers, Elixir and OTP provide a distributed platform out of the box. So automatic failover, service distribution, clustering, are all baked in, which should be considered when evaluating X vs Y. Hope that helps!
[ Parent
| on HN ]
Re:Deploying v0.11 Phoenix application to Heroku – My first ...
by vysakh0 on Wednesday April 22, 2015 @03:43AM
(#9419027)
Great! Looking forward for the talk.
I was just searching around and was surprised to find there are lot, like a lot of libraries already that could potentially save more time
Re:Deploying v0.11 Phoenix application to Heroku – My first ...
by digitalzombie on Wednesday April 22, 2015 @03:23AM
(#9418984)
Does it have any mod for Authentication? Such as OAuth ?
It doesn't seem to have OAuth, so I'm just curious.
Re:Deploying v0.11 Phoenix application to Heroku – My first ...
by vysakh0 on Wednesday April 22, 2015 @03:45AM
(#9419031)
I've not used phoenix yet, but looks like it has.
https://github.com/h4cc/awesome-elixir#authentication
(Also see framework components of that page)
Re:Deploying v0.11 Phoenix application to Heroku – My first ...
by adamkittelson on Wednesday April 22, 2015 @11:20AM
(#9421061)
I'm using https://github.com/scrogson/oauth2 to let users login with Facebook in the Phoenix app I'm working on and it works well.