Skip to content

kiskeyix/chess-tournaments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

398 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess::Tournaments

A chess tournament tracking application

Requirements

NOTE: this is work in progress, thus the requirements are yet to be set.

  • Ruby 2.3
  • Rails 4.x

Setup

  1. edit config/initializers/devise.rb
  2. setup your apache configuration with ENV variables for:
    CHESS_ADMIN_EMAIL

    GITHUB_APP_ID
    GITHUB_APP_SECRET
    TWITTER_APP_ID
    TWITTER_APP_SECRET
    FACEBOOK_APP_ID
    FACEBOOK_APP_SECRET
    GPLUS_APP_ID
    GPLUS_APP_SECRET
    TWITCH_APP_ID
    TWITCH_APP_SECRET

    SECRET_KEY_BASE
  1. edit the mailer domain in config/environments/production.rb
  2. if using Capistrano to deploy your app, your path will be /srv/web/apps/chess-tournaments/current/public

Usage

Creating Users

Creating Players

When creating players we default to images from Gravatar if the image link is not defined or left blank.

Developing/Hacking

These are a few considerations to keep in mind when working in RAILS_ENV=development.

Creating a local admin account

  1. launch server: rails s
  2. choose "Create local account" from drop-down menu
  3. verify your email following the user from log/development.log. i.e.: http://localhost:3000/users/confirmation?confirmation_token=SECRET_STRING
  4. using the terminal, go into the Rails Console: rails console
  5. select the user you created and made it admin
u = User.last
u.admin
u.save

Contributing

  1. fork on github
  2. edit
  3. pull request

About

A chess tournament tracking application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors