- rbenv, ruby(バージョン) を用意
gem install bundler
git clone [email protected]:hr-dash/hr-dash.git
cd hr-dash
bundle 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/postgres
if the directory already exists, remove it before execution. bundle exec rake db:create
bundle exec rake db:migrate
.env
で環境変数をセットアップbundle exec rake db:seed
bundle exec rails s
- open http://localhost:3000
- input [email protected]/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 rubocop
bundle exec rspec
完了