http://weblog.rubyonrails.org/2017/4/27/Rails-5-1-final/
rails new --webpack=react
yarn
as package manager- compile js with webpack (gem
webpacker
)./bin/webpack-dev-server
- system tests with built-in Capybara
- encrypted secrets
- Parameterized Mailers
form_with
rails/rails#25197
- use yarn as a js package manager (it uses npm registry https://www.sitepoint.com/yarn-vs-npm)
- place react components
app/javascript/component_name
andrequire('component_name'')
in js pack - by default system tests are not run by
test
command, you need to usebin/rails test:system
bin/rails secrets:setup
to setup encrypted secrets (keep secrets.yml.key)EDITOR="vi" bin/rails secrets:edit
to edit secrets - there are stored in encrypted secrets.yml.enc file (checked into repo)
- play with
foreman
https://ddollar.github.io/foreman/
- Installing chromedriver