custom boilerplate rails app
- uses both webpack and sprockets
- webpack-dev-server (automatic page reloadingāonly for assets though)
- css is extracted from js to separate file
- postcss-cssnext
- haml
- postgresql
- puma
- no jquery dependency
- global settings (see config/settings.yml)
$ bundle install
$ yarn init
$ yarn
$ rails secret
set SECRET_KEY_BASE var
rename db names in database.yml
$ git init
$ rails db:create
$ foreman start
$ open http://localhost:5000
- add es6 and jsx loaders
- set up asynchronous webfont loading
- set up React (probably in a separate boilerplate)
- capistrano?
- set up production task(s)
- auto-page-reloading on view changesāis that possible?
- seo meta tags (open graph, twitter)
- normalize styles
- whereas
webpack --watch
compiles to disk (updates the app/assets/build folder on changes), webpack-dev-server does not - uncomment config/puma.rb in gitignore when deploying (and add production puma.rb on server)