/rails-template

Primary LanguageRubyThe UnlicenseUnlicense

rails-template

Getting Started

  1. Install Homebrew:

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. Install OpenSSL, Cmake, PostgreSQL:

    brew install openssl cmake postgres
  3. Install RVM and Ruby:

    curl -sSL https://get.rvm.io | bash -s stable
    # In a new session (restart your terminal or open new tab):
    rvm install 2.5.1 --default --with-openssl-dir=`brew --prefix openssl`
  4. Set up RVM gemset:

    rvm gemset create cool_app
    rvm use 2.5.1@cool_app
    gem update --system
    gem update bundler
    gem install nokogiri -- --use-system-libraries=true --with-xml2-include=`xcrun --show-sdk-path`/usr/include/libxml2
    gem install rails
  5. Create Rails application:

    rails new cool_app --skip-coffee -f -B -d postgresql -m https://raw.githubusercontent.com/seouri/rails-template/master/template.rb

Gems