- rbenv, ruby(バージョン) を用意
gem install bundlergit clone git@github.com:hr-dash/hr-dash.gitcd hr-dashbundle install --path vendor/bundle- install phantomjs
brew install phantomjs
- install postgresql (>= 9.4.0)
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
start
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
stop
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
- create postgres user
initdb -U postgres -W /usr/local/var/postgresif the directory already exists, remove it before execution. bundle exec rake db:createbundle exec rake db:migrate.envで環境変数をセットアップbundle exec rake db:seedbundle exec rails s- open http://localhost:3000
- input test@example.com/password then submit
- Congratulations!!
- nokogiriがインストール出来ない場合は、Xcode Command Line Toolsが入っていないかもしれないので、以下のコマンドが役に立つかもしれません。
xcode-select --install
https://github.com/fortissimo1997/ruby-style-guide/blob/japanese/README.ja.md
https://github.com/satour/rails-style-guide/blob/master/README-jaJA.md
bundle exec rubocopbundle exec rspec
完了