News for hackers. Stuff that matters.
Re:Why I believe Rails is still relevant in 2019 by miki123211 on Tuesday March 19, 2019 @04:07AM (#19428930)
how relevant is Rails in the age of SPAs? How well does it work with making JSON APIs and hosting static React apps?
Re:Why I believe Rails is still relevant in 2019 by manch23 on Tuesday March 19, 2019 @04:15AM (#19428965)
Quite well. From Rails 5 there’s an API only init flag which removes the view layer and then you can just return JSON from controllers. Chuck nginx in front to proxy backend requests and serve your static front end bundle and you’re golden.