Terminal
에서 아래 작업들을 실행
-
homebrew
설치ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Ruby
설치brew install rbenv ruby-build
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile
rbenv install 2.4.2
-
Github
셋팅 (안되어 있을시) [키 확인ls -al ~/.ssh
]- ssh key 생성
ssh-keygen -t rsa -C "YOUR@EMAIL.com"
- 생성 위치 입력 & 비밀번호 입력
- 생성한 키 복사
pbcopy < ~/.ssh/id_rsa.pub
- github setting page 에서 ssh key 등록
ssh -T git@github.com
입력후 성공메세지가 뜨면 완료
- ssh key 생성
-
Rails
설치gem install rails -v 5.0.6
rbenv rehash
-
저장소 로컬에 clone
git clone git@github.com:brightest-ko/md-hot-place.git
rbenv local 2.4.2
-
gem
설치gem install bundler
gem install libv8 -- --with-system-v8
gem install rubocop scss_lint
bundle
-
gem
적용 아래의 gem list 참고bundle install
-
Rails server 실행
rails s
- 프로덕션 DB를 로컬로 마이그레이션 하기 참고.
cp config/database.yml.example config/database.yml
rake db:migrate
- `gem install carrierwave`
- In Rails, add it to your Gemfile: `gem 'carrierwave', '~> 1.0'`
- `rails generate uploader Avatar`
- In Rails, add it to your Gemfile: `gem 'mini_magick'`
- In Rails, add it to your Gemfile: `gem 'fog-aws'`
devise gem
- In Rails, add it to your Gemfile: `gem 'devise'`
- `rails generate devise:install`
bootstrap gem
- In Rails, add it to your Gemfile: `gem 'bootstrap', '~> 4.0.0'`
jquery & ajax gem
- In Rails, add it to your Gemfile: `gem 'jquery-rails'`
bootstrap paginate gem & pagination gem
- In Rails, add it to your Gemfile: `gem 'will_paginate-bootstrap'`
- In Rails, add it to your Gemfile: `gem 'will_paginate', '~> 3.0.6'`