Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 611 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 611 Bytes

Using NPM for react_on_rails

  • Use 'yarn link' to hook up the spec/dummy/client/node_modules to the top level
  • Be sure to install yarn dependencies in spec/dummy/client

Setup yarn link

cd react_on_rails
yarn link
cd spec/dummy/client
yarn link react_on_rails

Run yarn if not done yet

cd react_on_rails
yarn run dummy:install 

Starting the Sample App

Hot Reloading of Rails Assets

foreman start -f Procfile.hot

Static Loading of Rails Assets

foreman start -f Procfile.static

Creating Assets for Tests

foreman start -f Procfile.spec