A template for Rails 7, 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 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 \
-d postgresql \
-j webpack \
-T \
-m https://raw.githubusercontent.com/naokimi/lewagon-rails-template-plus/master/template.rb \
CHANGE_THIS_TO_YOUR_RAILS_APP_NAME
(the -j webpack
flag is optional)
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)
- *annotate: Add a comment summarizing the current schema to the top or bottom 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.
- font-awesome-sass: Sass-powered version of the web's most popular icon set and toolkit.
- *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 console
to open pry. - *rspec-rails: Behaviour Driven Development 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).