A template for Rails 8, intended to help you quickly build apps for production with a set of helpful gems. Inspired heavily by Le Wagon's Rails Devise template.
For the Rails 7 template please check the rails-7 branch.
For the Rails 6 template please check the rails-6 branch.
- Node JS
- A code editor, like VS Code
- Github CLI
- To generate the templates, run the following command:
rails new \
--css=bootstrap \
-T \
-m https://raw.githubusercontent.com/naokimi/lewagon-rails-template-plus/master/template.rb \
CHANGE_THIS_TO_YOUR_RAILS_APP_NAME
(Rails 8 has been designed for sqlite3. Remémber to pass -d <database> is you want to use a different database.)
Run your generated application with ./bin/dev
Navbar, flash messages, scss bootstrap variables, and a set of gems to help you with develoment (see list below)
(Starred items have been added on top of the ones used by Le Wagon's template)
- *annotaterb: Add a comment summarizing the current schema to the top of each of your models.
- autoprefixer-rails: Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use database.
- *database_cleaner: Reset ids when emptying database with seeds or rspec.
- devise: Flexible authentication solution.
- dotenv-rails: Shim to load environment variables from .env into ENV in development.
- *factory_bot_rails: a fixtures replacement to help you with defining testing objects.
- *faker: Generate fake data for your seeds and tests.
- *pundit: Minimal authorization through Object Oriented design and pure Ruby classes.
- pry-byebug: Step-by-step debugging and stack navigation capabilities.
- pry-rails: Causes
rails consoleto open pry. - *rspec-rails: Power testing library for Ruby on Rails.
- simple_form: Rails forms made easy.
- *simplecov: A tool to help you visualize how much of your app is covered by tests.
- *slim-rails: Reduce HTML markup in views (no more merge conflicts on closing
</div>s).