Rails_startup_template

screenshot of Rails_startup_template

A startup template for Ruby on Rails 4 applications

Overview

The Rails Startup Template is a template used for creating new Ruby on Rails 4 applications. It includes various gems and configurations to help streamline the development process. The template supports integration with analytics providers, authentication functionality, authorization, testing tools, templating language options, and more. It also includes options for installing Twitter Bootstrap and Font Awesome. The template sets up foreman to handle environment variables and background services, and it initializes a new git repository. Additionally, there are plans to add Heroku-specific gems as an optional feature in the future.

Features

  • Analytics Integration: The template includes the analytics-ruby gem, allowing integration with segment.io and other analytics providers such as Mixpanel and Kissmetrics.
  • Authentication Support: It includes the bcrypt-ruby gem, enabling the implementation of authentication functionality and the use of has_secure_password.
  • SASS Mixins: The template includes the Bourbon gem, which provides useful SASS mixins for cross-browser compatibility.
  • Authorization Library: CanCan, an authorization library, is included to restrict user access to specific resources.
  • HAML Templating: Optionally, the template can install the haml-rails gem, allowing the use of the HAML templating language.
  • Easy Form Building: SimpleForm gem makes it easy to build complex forms using simple markup.
  • UUID Generation: The template includes the uuidtools gem, which allows for the generation of UUIDs.
  • Testing Tools: Rspec-rails and Guard-rspec gems are included for test-driven and behavior-driven development, respectively. Capybara is also available for integration testing and simulating user behavior.
  • Flexible Fixture Alternative: Factory_girl_rails gem provides a flexible alternative to Rails fixtures.
  • Deployment Configuration: The template includes the rails_12factor gem, which is necessary for deploying Rails 4 applications on Heroku.
  • Asset Organization: The template cleans up assets by renaming application.css to application.css.scss and removing the include_tree directives to improve design and manual importing/requiring of assets.
  • Bootstrap and Font Awesome Support: Optionally, the template can install Twitter Bootstrap and Font Awesome for easy styling and icon integration.
  • Git Repository Initialization: The template initializes a new git repository with an initial commit.

Summary

The Rails Startup Template is a convenient tool for setting up new Ruby on Rails 4 applications. It includes various gems and configurations to enhance the development process, including analytics integration, authentication and authorization support, useful SASS mixins, easy form building, UUID generation, testing tools, and more. The template also allows for easy installation of Twitter Bootstrap and Font Awesome for styling and icon integration. With the added support for Heroku-specific gems, the template is well-equipped for deploying applications on Heroku.