Sha256: 3cd78d38f391d986d67c7eedeb43500a3a0fdc4cc0d3192099651f81c589c3ab

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 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'
```

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

2 entries across 2 versions & 1 rubygems

Version Path
react_on_rails-1.1.1 docs/generator_testing_script.md
react_on_rails-1.1.0 docs/generator_testing_script.md