Skip to content
Newer
Older
100644 47 lines (30 sloc) 1.51 KB
5ffbcd1 @zombieCraig Initial import. Has the DB worked out and an authentication system
zombieCraig authored Feb 19, 2011
1 Sumobot Tournament System
2
3 This is a ruby on rails system, that may or may not be used. This is just
4 some code used to experiment with rails with the goal of having a system you
5 can register with as a contender and sign up your bots to compete. During
6 the event it would show a bracketing system as well as scores, etc.
7
8 Well that's the goal anyhow. We'll see how far we get
09b24f1 @zombieCraig Added installation instructions
zombieCraig authored Feb 19, 2011
9
10 Installation Instructions
11 ---------------------------
12 Get rails, etc. This project is rails 3.0 so read instructions on that.
13 Example for Ubuntu: https://help.ubuntu.com/community/RubyOnRails
14 You may want to install RVM if you want multiple version so rails installed
15
16 Change into the SumoTourney directory and type:
17
18 bundle update
19
20 (Note: you will need libmysqlclient-dev to build mysql2)
21
22 Copy config/database.yml-example to config/database.yml
23
24 Edit the file and create an account in your SQL server that matches. You can
25 use sqlite3 for testing as well. Once you have the datbase setup (with the yml
26 file) then you need to initialize it
27
28 rake db:migrate (or rake db:migrate:reset if you munge the db)
29
30 Then start the server
31
32 rails server
33
34 You should be able to access it via localhost:3000
a5b322c @zombieCraig Added initial screen for the Admin section
zombieCraig authored Feb 20, 2011
35
36 Adding an Admin
37 ---------------
38 You need to use the Rails console to add an admin. After you create your first
39 contender (which would be an contender id of 1) Assuming this you type:
40
41 $ rails c
42 :001> Role.new(:contender_id => 1, :name => 'admin').save
43
44 After you login as an admin you will have an 'Admin' link in your login bar to
45 start matches and tournaments
46
Something went wrong with that request. Please try again.