Skip to content

Latest commit

 

History

History
 
 

dummy

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