yannis / kendocup

A Ruby On Rails engine providing Kendo tournament functionality

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kendocup

A Rails Engine for organizing Kendo tournaments.

Installation

Create a rails app

  • postgres is the only db type supported yet

    rails new your_app_name -d postgresql --skip-test-unit -B

Change a few files

In your Gemfile:

gem "kendocup", github: "yannis/kendocup"

and bundle install

In your routes.rb

scope ":locale", locale: /fr|en/ do |locale|
  mount Kendocup::Engine => "/"
  root to: redirect("/#{I18n.locale}/cups")
end

get '/', to: redirect(I18n.locale.to_s)

ActiveAdmin.routes(self)

In application.rb after require "sprockets/railtie" add

require "prawn"
require "prawn/table"
require "omniauth"
require "omniauth-facebook"
require "activeadmin"
require "figaro"

and right before closing class Application < Rails::Application add

config.action_mailer.default_url_options = { only_path: true }

You will change this settings once your email settings are available.

In db/seeds.rb add

Kendocup::Engine.load_seed

Copy a few files

Copy Kendocup db migrations to your app db/migrate directory

bin/rake kendocup:install:migrations

Create your db

bin/rake db:create

and migrate

bin/rake db:migrate

fill db with seed data

bin/rake db:seed

Sign in

Restart your rails server and try to sign in by opening /en/users/sign_in

and now go to /admin you should be in activeadmin

About

A Ruby On Rails engine providing Kendo tournament functionality

License:MIT License


Languages

Language:JavaScript 63.9%Language:Ruby 30.1%Language:CSS 3.8%Language:HTML 2.2%Language:CoffeeScript 0.0%