Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Latest commit

 

History

History
 
 

dummy

Using NPM for react_on_rails

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

Setup npm link

cd react_on_rails
npm link
cd spec/dummy/client
npm link react_on_rails

Run npm i if not done yet

cd react_on_rails
npm 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