3 ms·
how relevant is Rails in the age of SPAs? How well does it work with making JSON APIs and hosting static React apps?
by miki123211 8y ago
how relevant is Rails in the age of SPAs? How well does it work with making JSON APIs and hosting static React apps?
- manch23 8y agoQuite 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.