Rails 5.1 + Angular 4.1 example

Versions

Name Version
ruby 2.4.1
rails 5.1.0
node.js v6.10.3
npm 3.10.10
yarn v0.23.4

Run in development mode

Terminal A

$ cd path/to/rails51-sandbox1
$ bin/webpack-dev-server

Terminal B

$ cd path/to/rails51-sandbox1
$ bin/rails s

open http://localhost:3000/heroes/index/ NOT http://localhost:3000/heroes/index . Don't forget the last slash of the URL.