A free and simple starting point for Ruby on Rails 7 applications.. This particular template utilizes Tailwind CSS, a utility-first CSS framework for rapid UI development.
This template comes with Tailwind CSS preconfigured for use. To make use of tools like @apply
and @layer
a more sophisticated setup is required likely using PostCSS and JavaScript bundling.
When creating a new rails app simply pass the template filename and ruby extension through. I opt for esbuild instead of the default importmap configuration for JavaScript.
$ rails new sample_app -j esbuild -m template.rb
name
field already migrated in. The name field maps to the first_name
and last_name
fields in the database thanks to the name_of_person
gem..bin/dev
to kick off rails and Tailwind processes. Foreman needs to be installed as a global gem on your system for this to work. i.e. gem install foreman
$ ./bin/dev
📹 Coming soon!
Made by @justalever (yours truly). Find me on Twitter, web-crunch.com, GitHub.