Skip to content

Latest commit

 

History

History
68 lines (50 loc) · 1.84 KB

README.md

File metadata and controls

68 lines (50 loc) · 1.84 KB

HR Dashのリポジトリーです!!

CircleCI
codebeat badge

環境構築手順

  1. rbenv, ruby(バージョン) を用意
  2. gem install bundler
  3. git clone [email protected]:hr-dash/hr-dash.git
  4. cd hr-dash
  5. bundle install --path vendor/bundle
  6. install phantomjs
brew install phantomjs
  1. 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
  1. create postgres user initdb -U postgres -W /usr/local/var/postgres if the directory already exists, remove it before execution.
  2. bundle exec rake db:create
  3. bundle exec rake db:migrate
  4. .env で環境変数をセットアップ
  5. bundle exec rake db:seed
  6. bundle exec rails s
  7. open http://localhost:3000
  8. input [email protected]/password then submit
  9. Congratulations!!

Trouble Shooting

  • nokogiriがインストール出来ない場合は、Xcode Command Line Toolsが入っていないかもしれないので、以下のコマンドが役に立つかもしれません。
xcode-select --install

コーディング規約

Ruby

https://github.com/fortissimo1997/ruby-style-guide/blob/japanese/README.ja.md

Rails

https://github.com/satour/rails-style-guide/blob/master/README-jaJA.md

Pushする前に...

  • bundle exec rubocop
  • bundle exec rspec

完了