3 ms·
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 re
by chrismccord 12y ago
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!
- digitalzombie 12y agoDoes it have any mod for Authentication? Such as OAuth ? It doesn't seem to have OAuth, so I'm just curious.
- vysakh0 12y agoI've not used phoenix yet, but looks like it has. https://github.com/h4cc/awesome-elixir#authentication https://github.com/h4cc/awesome-elixir#authentication (Also see framework components of that page)
- adamkittelson 12y agoI'm using https://github.com/scrogson/oauth2 https://github.com/scrogson/oauth2 to let users login with Facebook in the Phoenix app I'm working on and it works well.
- vysakh0 12y agoGreat! 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 https://github.com/h4cc/awesome-elixir https://github.com/h4cc/awesome-elixir