Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
miki123211
· 7y ago · 0 comments
how relevant is Rails in the age of SPAs? How well does it work with making JSON APIs and hosting static React apps?
Comments
[–]
manch23
7y ago
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.