Yohoushi is a graphing tool, which assembles GrowthForecast
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
doc/api/yohoushi
docker
lib
log
public
spec
vendor
.byebugrc
.dockerignore
.gitignore
.rdebugrc
.rspec
.travis.yml
CHANGELOG.md
Dockerfile
Gemfile
Gemfile.lock
Guardfile
LICENSE
README.md
Rakefile
VERSION
config.ru
docker-compose.yml

README.md

Yohoushi

Yohoushi is a graphing tool, which assembles GrowthForecast. Documents are avialable at gh-pages.

Ruby version

  • ruby >= 2.0.0

System dependencies

  • MySQL
  • GrowthForecast >= 0.62

Preparation

Install and run MySQL and GrowthForecast. Configure config/application.yml and config/database.yml.

bundle

How to develop

Note that the default RAILS_ENV is being switched to production, not development so that users of yohoushi can easily install and run it in production environment. Thus, developers must specify RAILS_ENV=development.

Database initialization

RAILS_ENV=development bin/rake db:create db:migrate

Run a rails app only (Use -b 0.0.0.0 to bind to 0.0.0.0 not localhost)

RAILS_ENV=development bin/rails s

Run a serverengine worker only

RAILS_ENV=development bin/serverengine

Run both a rails app and a serverengine worker through god (Use -d option to daemonize):

RAILS_ENV=development bin/yohoushi

Stop both the daemonized rails app and serverengine worker:

RAILS_ENV=development bin/yohoushi stop

How to run the test suite

RAILS_ENV=test bin/rake db:drop db:create db:migrate 
rspec

ChangeLog

See CHANGELOG.md for details.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright

Copyright (c) 2013 DeNA Co., Ltd. See LICENSE for details.