a realtime chat application for developers
Ruby JavaScript HTML CSS Other
Latest commit 1a7b00a Mar 12, 2016 @mallowlabs mallowlabs Merge pull request #226 from mallowlabs/ruby_3_2_22_2
Updated: rails 3.2.22.2
Permalink
Failed to load latest commit information.
app Merge pull request #222 from mallowlabs/id/222 Mar 12, 2016
config Added: search API refs #166 Feb 7, 2016
lib Added: supporting Ruby 2.2.0 refs #211 Feb 11, 2015
log log/はあったほうがrailsっぽいよねー refs #957 Jan 8, 2012
misc Refactored: misc/bot refs #205 Nov 24, 2014
plugins Merge pull request #225 from codefirst/fix_broken_emoji_suggestion Mar 12, 2016
public Wrote: robots.txt refs #1326 Sep 19, 2012
qunit modify test to check the number of appended messages Jan 15, 2014
script initialize: jquery, haml, rspec Jan 16, 2011
socky Sockyをデフォルト設定にした #846 Nov 20, 2011
spec
tmp Fixed: .gitkeep locations refs #957 Jan 7, 2012
.gitignore add rake task for qunit testing refs #1434 Mar 17, 2013
.rspec Added: supporting Ruby 2.2.0 refs #211 Feb 11, 2015
.travis.yml Good-bye Ruby 1.8 and friends... Jan 3, 2016
Gemfile Updated: rails 3.2.22.2 Mar 12, 2016
Gemfile.lock Updated: rails 3.2.22.2 Mar 12, 2016
Guardfile replace autotest to guard refs #866 Nov 24, 2011
LICENSE Fixed: LICENSE typo May 3, 2014
Procfile Added: heroku related files refs #1261 Aug 23, 2012
README.markdown Good-bye Ruby 1.8 and friends... Jan 3, 2016
Rakefile
app.json Changed: MongoHQ to MongoLab Mar 1, 2015
config.ru initialize: jquery, haml, rspec Jan 16, 2011
wercker.yml Added: supporting Ruby 2.2.0 refs #211 Feb 11, 2015

README.markdown

AsakusaSatellite

Deploy

Build Status Code Climate Coverage Status wercker status

Overview

AsakusaSatellite is a realtime chat application for Developers.

Authors

  • @suer
  • @mallowlabs
  • @mzp
  • @shimomura1004
  • @banjun

Requirement

  • Ruby 1.9.3 / 2.0.0 / 2.1 / 2.2 / 2.3 or JRuby 1.7.1
  • RubyGems 1.4.2 or later
  • Bundler 1.0.7 or later
  • MongoDB 1.8.1 or later

Install

Install dependencies:

$ bundle install --path .bundle --without development test

Precompile assets:

$ bundle exec rake assets:precompile RAILS_ENV=production

If you upgrade AS from 0.7.0 or older, execute following:

$ curl https://raw.github.com/gist/2792357/asakusasatellite_migration_for_v0.7.0 | mongo <db_name>

Excecute mongodb and socky:

$ mongod --dbpath <dir_name>
$ bundle exec thin -R socky/config.ru -p3002 -t0 start

Run AsakusaSatellite:

$ bundle exec rails s -e production

and access to http://localhost:3000/

For JRuby user

How to deploy

$ bundle exec rake assets:precompile
$ bundle exec warble

limitation

  • Don't use socky on JRuby. use keima or pusher
  • Don't use newrelic

For developers

Install for Developer

$ cp misc/bleis-hooks/* .git/hooks

Test

You need test db to run tests.

$ mongod --dbpath <test_dir_name>

individual testing

$ bundle exec rspec spec/{controller,model}/$(name)_spec.rb

test all

$ bundle exec rake

run with rcov

$ bundle exec rake spec:rcov

auto testing

$ bundle exec guard start

JavaScript testing

Requirement: phantomjs 1.5+

$ bundle exec rake qunit

Generate Plugin Template

generate filter

$ rails g as_filter test

edit filies

  • plugins/as_test_filter/lib/test_filter.rb
  • plugins/as_test_filter/spec/lib/test_filter_spec.rb

edit config/filters.yml

- name: test_filter

generate viewhook

$ rails g as_viewhook test

edit files

  • plugins/as_test/lib/test.rb
  • plugins/as_test/spec/lib/test_spec.rb

Thanks

Very cute icons

Several icons are from Farm-Fresh Web Icons. These icon sets are licensed under a Creative Commons Attribution 3.0 License.

Cool sound

Cool sound is created by On-Jin. Do not redestribute the sound file.

Redmine logo

Redmine Logo is Copyright (C) 2009 Martin Herr and is licensed under ThereCreative Commons Attribution-Share Alike 2.5 Generic license.

See http://creativecommons.org/licenses/by-sa/2.5/ for more details.