ClanCenter is a Rails 4 app written in Ruby. It draws heavy inspiration from the100.io in that you can create gaming sessions. Aside from that you can create a database of games and different game modes on the fly.
-
Ruby 2.15
-
Rails 4.2.0
-
Postgres
-
Redis
Please see the wiki (coming soon!)
###Database
-
Set up your database in
config/database.yml
- Defaults to:
user: postgres
password: postgres
-
Run
rake db:migrate && rake db:seed
###Assets
-
Run
RAILS_ENV=development rake assets:precompile
-
Run
rm -rf public/assets
Right now, you have to precompile and remove the compiled assets as they convert from less. I'm looking into a smoother option at getting this corrected.
We use Redis and Sidekiq to manage background jobs (mailers, removing stale game sessions).
#####Redis
- Make sure you have Redis ready to rock and running, if you have no clue about it check here
#####Sidekiq
- Run
bundle exec sidekiq
##Wrap up
All in all you should be good to go at this point. View http://localhost:3000
to see what it looks like!
We use Rspec for testing and Factory_Girl for creating our test structures.
- Simply run
rake spec