Skip to content

jckfa/rails-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Ā 

History

25 Commits
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 

Repository files navigation

Rails Starter

custom boilerplate rails app

Summary

  • 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)

Setup

$ 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

To Do

  • 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

Notes

  • 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)

Research (for future reference)