Terminal에서 아래 작업들을 실행
-
homebrew설치ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Ruby설치brew install rbenv ruby-buildecho 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profilesource ~/.bash_profilerbenv 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.6rbenv rehash
-
저장소 로컬에 clone
git clone git@github.com:brightest-ko/md-hot-place.gitrbenv local 2.4.2
-
gem설치gem install bundlergem install libv8 -- --with-system-v8gem install rubocop scss_lintbundle
-
gem적용 아래의 gem list 참고bundle install
-
Rails server 실행rails s
- 프로덕션 DB를 로컬로 마이그레이션 하기 참고.
cp config/database.yml.example config/database.ymlrake 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'`