/rg-portal

Internal Website for Keio Univ. Technology joint research groups

Primary LanguageRuby

wercker status

RG Portal

Development Environment Configuration

Requirements

  • Ruby 2.2.1
  • Bundler
  • Bower

Recommends

  • rbenv

Slack OAuth configuration file

  • Copy configuration sample from config/oauth.yml.sample
$ cp config/oauth.yml.sample config/oauth.yml
  • Get the oauth information from Slack RG AuthenticationのOAuth情報 (require slack authentication)

  • Do not create a new authentication yourself. The number of integrations has a limit.

Gem installation

$ bundle install --path=vendor/bundle

If you have a error like Failed to build gem native extension. during installation of libv8 or therubyracer, following configurations may help you.

$ bundle config build.libv8 --with-system-v8
$ bundle config build.therubyracer --with-v8-dir

Copy emoji files to public directory

$ rake emoji

JavaScript library installation

$ rake bower:install

Database creation

$ bundle exec rake db:migrate RAILS_ENV=development

It will create database file like db/development.sqlite3

Generate test data

$ SLACK_USER_ID=<your slack user ID here> rake db:seed

You can run the seed task to generate test data. If you provide your slack ID via environment variable, you can login as one of the test users.