A rapid Rails 6 application template for personal use. This particular template utilizes Tailwind CSS, a utility-first CSS framework for rapid UI development.
Need version 5.2.3 support? Check out this branch
Tailwind depends on Webpack so this also comes bundled with webpacker support.
Inspired heavily by Jumpstart from Chris Oliver. Credits to him for a bunch here.
Be sure to also check out Jumpstart Pro to save loads of time creating your next Rails application. Chris, Jason, and I teamed up on it.
With Rails 6 we have webpacker by default now. Using PostCSS we can install Tailwind as a base CSS framework to harness. I prefer Tailwind due to it's un-opinionated approach.
When creating a new rails app simply pass the template file through.
$ rails new sample_app -d <postgresql, mysql, sqlite3> -m template.rb
app/javascript
directory.username
and name
field already migrated in. Enhanced views using Tailwind CSS.Procfile
. Once you scaffold the template, run foreman start
to initalize and head to locahost:5000
to get rails server
, sidekiq
and bin/webpack-dev-server
running all in one terminal instance. Note: Webpack will still compile down with just rails server
if you don't want to use Foreman. Foreman needs to be installed as a global gem on your system for this to work. i.e. gem install foreman
$ rails server
Run foreman start
. Head to locahost:5000
to see your app. You'll have hot reloading on js
and css
and scss/sass
files by default. Feel free to configure to look for more to compile reload as your app scales.
📹 https://youtu.be/kuKMRl8nj2w - A bit dated now that Rails 6 is out now.