Skip to content

webfrontier/hr-dash

 
 

Repository files navigation

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

完了

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 77.2%
  • HTML 12.3%
  • CSS 5.6%
  • JavaScript 4.3%
  • CoffeeScript 0.6%