A solid foundation for how we want to build Rails applications anno 2026.
- RSpec tests
- View Components
- Vite for Javascript assets
- Stimulus for clientside interactions
- Turbo for serverside interactions
- Tailwind for styling
- Flowbite as a UI kit via flowbite-components
- Rubocop with Substance Lab Style
- Solid Queue for background jobs
fc5ff803c697ff3acd4ca1bec4df1a2aa733ac09
cd path/to/where/you/want/the/new/appexport NEW_APP_NAME=<name of app>git clone git@github.com:substancelab/rails-boilerplate.git $NEW_APP_NAMEcd $NEW_APP_NAMErm -rf .git .circleci- Replace all occurrences of "Boilerplate" with YourAppName":
find . -type f -print0 | xargs -0 sed -i '' 's/Boilerplate/YourAppName/g' - Replace all occurrences of "boilerplate" with "your_app_name":
find . -type f -print0 | xargs -0 sed -i '' 's/boilerplate/your_app_name/g' mv README_APP.md README.mdrm -rf script/boilerplate
... and you're off to the races.
Typical next steps:
git initgit remote add origin GIT_REMOTEgit add .git commit -m "Initial import from rails-boilerplate"git push --set-upstream origin main
cp config/database.yml.example config/database.yml# edit as necessaryscript/setup