Sha256: 0b3d97912c317bf04fa29cad868f73501e3e8d18f17a49750d061139cb212e07
Contents?: true
Size: 966 Bytes
Versions: 4
Compression:
Stored size: 966 Bytes
Contents
Per running steps: From directory of `react_on_rails`, with a test app named "react_on_rails_gen" ```bash cd .. rails new react_on_rails_gen cd react_on_rails_gen git init git add . git commit -m "Rails new plus react_on_rails" ``` Edit the Gemfile, adding these 2 lines: ```ruby gem 'react_on_rails', path: '../react_on_rails' gem 'therubyracer' ``` Note the relative path to the react_on_rails gem. ```bash bundle git commit -am "added react_on_rails gem" ``` You can now mess around with the generator: ```bash # See available options rails generate react_on_rails:install --help # Actual install, for example, with Redux rails generate react_on_rails:install --redux ``` If you do actually run the generator, then you can see the changes that the generator made, ready for a commit. Then run: ```bash cd client npm install cd .. foreman start -f Procfile.dev ``` Then visit `localhost:3000/hello_world` to see it. That's it!
Version data entries
4 entries across 4 versions & 1 rubygems