Rails Templates

screenshot of Rails Templates

My Ruby on Rails application templates

Overview:

The application templates for Ruby on Rails, created by iiska, offer a convenient way to set up a new Rails project with a collection of useful features and configurations. By copying the railsrc file to your home directory and running the rails new command, you can easily generate a new Rails app with pre-configured settings. This template includes various gems like bullet, brakeman, pry, rspec, simplecov, factory_girl_rails, and rubocop, which provide functionality for N+1 query detection, security scanning, powerful IRB shell replacement, testing with RSpec, test coverage reporting, factories instead of fixtures, and static code analysis and style enforcement. Additionally, the template sets up a Docker configuration for running the development environment and creates a default Docker Compose environment with dockerized PostgreSQL server for development and testing databases.

Features:

  • N+1 query detector: Finds and helps optimize N+1 query issues.
  • Brakeman security scanner: Scans for security vulnerabilities in the Rails application.
  • Powerful IRB shell replacement: Pry replaces the default IRB shell, providing enhanced functionalities for debugging and exploration.
  • RSpec: Alternative testing framework to TestUnit for easier and more expressive testing.
  • Test coverage reporting: Simplecov tracks and reports test coverage, helping to identify areas that need more test coverage.
  • Factories instead of fixtures: factory_girl_rails allows for easier creation of test data using factories instead of fixtures.
  • Static code analysis and style enforcer: Rubocop analyzes code for style violations and enforces a consistent style throughout the project.

Summary:

The application templates provided by iiska for Ruby on Rails simplify the process of setting up a new Rails project with pre-configured features and configurations. With the ability to copy the railsrc file to your home directory and run the rails new command, you can quickly generate a new Rails app with essential gems like bullet, brakeman, pry, rspec, simplecov, factory_girl_rails, and rubocop. Additionally, the template includes Docker configuration for the development environment and creates a Docker Compose environment with dockerized PostgreSQL server for development and testing databases. These templates offer a convenient and efficient way to bootstrap a Ruby on Rails project with useful tools and configurations.