Rails Defaults

screenshot of Rails Defaults

A Rails apps with some Defaults - PG, RSpec & more

Overview

The Default "Template" Rails App is a ready-to-use Rails application template designed to streamline the process of starting new projects, coding challenges, or hackathons. This template includes default settings and configurations that are commonly used by the developer. It aims to make the setup process easier by providing a pre-configured Rails app with specific defaults.

Features

  • Postgres as the database: The template uses Postgres instead of SQLite as the default database for both development and production environments. This ensures consistent database usage between local and production environments.
  • RSpec for testing: The template includes RSpec as the default testing framework. RSpec is widely adopted and provides a more expressive syntax for writing tests compared to Minitest.
  • Faraday HTTP library: Faraday, a well-maintained HTTP library, is included in the template. This library is familiar to the developer and proves useful for making external API calls, which is a common requirement in most projects.
  • Rubocop for Ruby coding style: Rubocop is integrated into the template to enforce a good Ruby coding style across all future projects. This helps maintain a consistent and clean codebase.

Summary

The Default "Template" Rails App is a time-saving solution for starting new Rails projects, coding challenges, or hackathons. By providing a pre-configured Rails application with commonly used defaults, such as Postgres as the database, RSpec for testing, Faraday for making external HTTP calls, and Rubocop for enforcing a good Ruby coding style, the template streamlines the setup process and allows developers to focus on coding rather than configuration.