Skip to content

Instantly share code, notes, and snippets.

@rgarciaj
Last active December 19, 2015 11:09
Show Gist options
  • Save rgarciaj/5945583 to your computer and use it in GitHub Desktop.
Save rgarciaj/5945583 to your computer and use it in GitHub Desktop.

Rails Boilerplate

  • Iniciar MySQL

      mysql.server start
    
  • Iniciar PostgreSQL

      pg start
    
  • Crear aplicación con MySQL

      rails new app -d mysql --skip-bundle
    
  • Crear .rvmc

      echo "rvm use 2.0.0-p247@rails_last" >> .rvmrc
    
  • Actualizar Gemfile

      gem 'backbone-on-rails'
      gem 'bootstrap-sass-rails'
      # gem 'coffee-rails', '~> 4.0.0'
    
  • Bundle

      bundle install
    
  • Instalar Backbone

      rails generate backbone:install
    
  • Instalar Bootstrap

    • Agregar en application.css

        /*
        *= require twitter/bootstrap
        *= require twitter/bootstrap/_responsive
        */
        
        #example {
            /* Your styles... */
        }
      
    • Agregar en application.js

        //= require twitter/bootstrap
        
        $(document).ready(function(){
        });
      
  • Iniciar Servidor

      rails s
    
  • Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment