Application template for Rails projects; preloaded with best practices for TDD, security, deployment, and developer productivity.
This is a template you can use to create new Rails applications.
This template is the set of things we (the Ackama Ruby team) want in every Rails application we create, based on 10+ years of creating new Rails applications, numerous pen-tests and then maintaining those applications for years.
Some of these choices are objectively good ideas, some of them are subjective opinions :shrug:. We are delighted when other teams find this template useful as either the starting point for their apps, or as the starting point for creating their own in-house template.
Where possible we stick to Rails defaults.
bin/setup scriptdoc/ directory for docsapp/services as the place to hold our plain ol' Ruby objects
wherein we put most of our business logic.osv-detector to run in
CI.well-known/security.txtHEADFUL=1 environment variable to your command linespec/features/accessibility,
to allow for running them separately. Using the shared examples found at
variants/accessibility/spec/support/shared_examples/an_accessible_page.rb
for your base tests avoids duplication and misconfiguration.spec/features/accessibility.app/javascript to app/frontendNote We are trialing the new JS packaging options that Rails 7+ provides. For now our default is still Shakapacker because it provides us the most flexibility.
Stop making users download two yaml config files before running template
https://github.com/ackama/rails-template/issues/664
Labels: None
Should we change how we generate our CSP nonce?
https://github.com/ackama/rails-template/issues/591
Labels: in progress
No CONTRIBUTING document was found. Please check the README and open issues.