Hacker News new | ask | show | jobs
by cpursley 4325 days ago
Truly impressive. I'd also like to see the Rails team focus on Rails-as-API for those of us who have moved on from the asset pipeline (splitting the server side from client side).

It would be nice to have a "API only" flag option when generating a new rails project. Something like: `rails new myapp -api`. This could keep Rails going for another 10 years.

I'm looking into using Napa, a Grape based API framework, for the purpose of Ruby server-side API apps: https://github.com/bellycard/napa

(Napa is to Grape as Padrino is to Sinatra)

Related reading: http://www.divshot.com/blog/opinion/every-web-app-is-two-app...

2 comments

> It would be nice to have a "API only" flag option when generating a new rails project.

This was rejected by core and turned into http://github.com/rails-api/ , which has had some maintenance issues, but is getting back on track.

(see https://groups.google.com/d/msg/rails-api-core/8zu1xjIOTAM/1... . This is about AMS, but that's only because updating rails-api itself should be easy, and I'm going to check it out as well)