Generates a Rails 6 application with these choices:
- PostgreSQL database
- Bootstrap V5 front-end toolkit
- Devise authentication
- Pundit authorization
- Slim templating engine
- RSpec & Cucumber testing
- Bullet N+1 detection
- FactoryBot test data
- Kaminari pagination
- Ransack search
- MetaTags SEO
- Pry console
- Gravatar with fallback to LetterAvatar
- RuboCop & ESLint linters, with Prettier formatting
- Model annotation
- Code coverage
- Ready for cloud deploy at Heroku
I used to have a Rails project whose sole purpose was to provide a jumping off point for other Rails projects. Regenerating pieces of it every time one of its dependencies changed was tedious, so I scripted building a new app and dropping in the pieces that don't come from generators.
See OpinionatedRails
In order to work on OpinionatedRailsGenerator you first need to fork and clone the repo. Please do any work on a dedicated branch and rebase against master before sending a pull request.
Usage: bin/generate.rb APP_PATH
- Update
db/seeds.rb
with your preferred info andgit commit
the change - Install Heroku CLI if you haven't already
heroku create [APP]
heroku addons:create sendgrid:starter
heroku labs:enable runtime-dyno-metadata
git push heroku master
heroku rake db:fixtures:load db:seed
heroku open