Work in progress for creating an application template.
devise friendly_id sidekiq name_of_person stripe rspec factorybot css-bundling tailwind css
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 Rails-kickoff-app/template.rb
For PostgreSQL use
$ rails new sample_app -j esbuild -m Rails-kickoff-app/template.rb --database=postgresql
- Tailwind CSS
- Devise with a new
name
field already migrated in. The name field maps to thefirst_name
andlast_name
fields in the database thanks to thename_of_person
gem. - Enhanced views and devise views using Tailwind CSS.
- The Stripe gem installed with the Stripe API to make accepting payments on the web. Be sure to add your own unique API keys.
- Support for Friendly IDs thanks to the handy friendly_id gem. Note that you'll still need to do some work inside your models for this to work. This template installs the gem and runs the associated generator.
- Rspec-rails testing framework for rails.
- Factorybot a fixtures replacement with a straightforward definition syntax, support for multiple build strategies, and support for multiple factories for the same class, including factory inheritance.
- Optional Foreman support. Run
.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
- Custom view helper defaults for basic button and form elements.
- Scaffolding templates made with Tailwind CSS
$ ./bin/dev