This README would document whatever steps are necessary to get the application up and running.
- Suggest from:
- create folder
$ mkdir test-rails-51
$ cd test-rails-51
- create Gemfile
source "https://rubygems.org"
ruby '2.3.1'
gem 'rails', :git => 'https://github.com/rails/rails.git'
gem 'rack', :git => 'https://github.com/rack/rack.git'
gem 'arel', :git => 'https://github.com/rails/arel.git'
- run bundle
$ bundle
- create rails application
$ bundle exec rails new . --webpack --dev --force
- run rails and webpack-watcher
$ rails s
in another console
$ ./bin/webpack-watcher
you can see at http://localhost:3000 the rails welcome page
Ruby on Rails (image)
Yay! You’re on Rails!
Welcome (image)
Rails version: 5.1.0.alpha
Ruby version: 2.3.1 (x86_64-darwin16)
- initialize git
$ git init
$ git add .
$ git commit -m "initial commit"
- add react with webpacker
$ rails webpacker:install:react
- add redux and react-redux
$ bin/yarn add redux
$ bin/yarn add react-redux
When you download from git, you need this extra step:
$ bin/yarn