Skip to content

5xRuby/daikichi

Repository files navigation

Build Status Code Climate Test Coverage

Requirements

  • Ruby 2.6.3
  • Rails 5.2.3
  • Postgresql 9.4.4

Installation

$ git clone [email protected]:5xruby/daikichi.git
$ cd daikichi

# generate key with rake secret
$ cp config/secrets.yml.sample config/secrets.yml

$ cp config/application.yml.sample config/application.yml
$ cp config/database.yml.sample config/database.yml

$ bundle install
$ bundle exec rake db:create
$ bundle exec rake db:migrate

Keycloak Configure

  1. Create an Client in Keycloak
  2. Set Access Type to Cofidential to prevent public access
  3. Copy token from Credentials tab as secret_key

Optional

pow + byebug

# install pow
$ curl get.pow.cx | sh

# http://daikichi.dev
$ gem install powder
$ powder link

# export BYEBUGPORT={port}
$ cp .powenv.sample .powenv
$ bundle exec byebug -R localhost:{port}

populate user data (development)

# lib/tasks/users.csv
$ rake import_data:users

populate leave time data

$ rake leave_time:init

populate holiday data

$ rake holiday:build

customization

# config/locales/meta_data.[locale].yml
misc:
  app_title: "your app title"
  company_name: "your company name"

coding style

$ gem install rubocop
$ rubocop