![]() |
|
|
#1 |
|
Guild Officer
Join Date: Sep 2004
Posts: 1,991
![]() ![]() |
DKP/Crafting Manager (gManager)
No, I'm not trying to rip off Google, I just don't have a good name for the tool.
What I've embarked on is a improved DKP system, that'll include Scheduling (with Calendar, and XML/RSS export) and a resurrected version of the Crafting Manager that I announced but never finished. So now I'm looking for contributors, and new coder blood, and some new brains - mine is running out. Thing is it's written in Ruby on Rails (RoR) - For the better part of a year I've been working with this framework, and it honestly makes web development a lot more fun. You can read about it here http://www.rubyonrails.com But for our purposes in this post, I'm going to talk you through getting a Web Development environment in Windows. So to get started working on the new system you need a Ruby On Rails dev Environment - I'll start with windows since it's actually easier than OSX or even linux (which I'll include later). For Windows this is by far the simpliest way I can explain to install RoR.
Checkout DKP code: Getting the actual codebase isn't very hard, I check in all the code to an SVN repository. First a few things to get the environment setup, open up the command prompt again and issue the following command: "mysqladmin -u root -p create gmanager_development" use the password for the root account for the mysql server - usually you define it during the installation. Leave the command prompt open and return to RadRails. From RadRails create a new project File->New - expand the SVN section and click on checkout project from SVN, click Next. Select "Create new repository location" radio button and click next. type in teh following URL "http://pistonz.net/svn/gmanager" click next. You shoudl see 'trunk' in the next window, click the + to expand it, you should see many directories like (app, config, log, public) this is good. Click on 'trunk' and click next. Select "check out project using new project wizard" checkbox and click Finish. New wizard pops up, click on Rails Project and click next. Give the project a Name like "OOC gManager" or just "gmanager". Use the default location. Uncheck generate rails application skeleton, and if you installed Mongrel check off "Create a Mongrel Server" and uncheck "Create a Webrick server", if you didn't install Mongrel, leave the settings as they are and click Finish. Remember to make note of the location. RadRails should start to checkout the code. Once the code is checked out, you can start to configure the environment. From the Rails Navigator expand the project, and inside the config directory there should be a database.yml.example file, copy that file as database.yml. Edit database.yml file and examine the development: area, and make changes where necessary. specifically username, and password. This for development is usually root and the password given during mysql installation. I'm not going to go into the whole securing your mysql installation, because frankly this is a toy app. Once all this is done, go back to the command prompt and change directories to where RadRails checked out the application. run this command "rake db:bootstrap" and follow up with "rake db:bootstrap:load" should load default fixtures and settings, including the database schema. If you have problems, review the above steps for creating the database. Once this is finished, go back to RadRails - click on the servers tab at the bottom, and select the Mongrel/Webrick server and click the start button. Everything hopefully will start and you can from yoru browser goto http://localhost:3000/ and see the Rails welcome page. Last edited by RageKage; 10-24-2006 at 03:46 PM. |
|
|
|
|
|
#2 |
|
Red Rubbery Mageness
Join Date: Sep 2004
Posts: 1,493
![]() ![]() |
Great instructions, Rager; have been looking for an excuse to learn Rails -- and despite the somewhat mixed message of needing Java for Rails development, it's hard to argue with Eclipse, definitely my favorite IDE for non-C++ development. :)
Couple of things: - the link to the RadRails ZIP doesn't work (or didn't for me), but a simple search on Sourceforge is all that's required to get it. - you don't say it, but you need the MySQL 'bin' folder in your PATH in order to avoid an ass-ton of "LIBMYSQL.dll" not found Windows errors whilst building (or perhaps "raking" is the more apropos gerund ;-)) the bootstrap environment. |
|
|
|
|
|
#3 |
|
Guild Officer
Join Date: Sep 2004
Posts: 1,991
![]() ![]() |
hrm.. weird - i've never had a problem with libmysql being an issue..
But, the instructions worked? :) |
|
|
|
|
|
#4 |
|
Red Rubbery Mageness
Join Date: Sep 2004
Posts: 1,493
![]() ![]() |
Yep, have the whole thing up and building. Just need to learn Ruby now so I can actually understand what goes where (beyond the basic MVC model, which is obvious) and perhaps start contributing, depending on time available :)
|
|
|
|
|
|
#5 |
|
Dead....
|
Ill get this installed tonight and start learning....
__________________
DirkLoogie - Warrior |
|
|
|
|
|
#6 |
|
Slackass Extraordinaire
Join Date: Nov 2004
Posts: 1,463
![]() |
I had the code before but didn't know how to setup the database. Maybe now I'll actually do something :)
__________________
Neito - Neit - Prowler [Clarendon] whispers: you havent heard the last from me |
|
|
|
|
|
#7 |
|
Guild Officer
Join Date: Sep 2004
Posts: 1,991
![]() ![]() |
The code you had i think is old and busted, new hawtness is the gmanager stuff :)
|
|
|
|
|
|
#8 |
|
Senior Member
|
Installed and running. Now like Zy I just need to figure out what all is going on :)
On a side-note, I also installed MySql GUI Tools in order to more easily see the db. (There might have been an easier way to view everything but I'm used to SQL Server). http://dev.mysql.com/downloads/gui-tools/5.0.html
__________________
Dyonaxis - Lvl 80 Human Death Knight : Mining / Blacksmithing Mystalia - Lvl 70 Elven Hunter : Mining / Engineering Danorian - Lvl 70 Human Mage : Herbalism / Alchemy |
|
|
|
|
|
#9 |
|
Red Rubbery Mageness
Join Date: Sep 2004
Posts: 1,493
![]() ![]() |
SQLYog, baby. It's the only way to fly (and now it's OSS too ;-)).
|
|
|
|
|
|
#10 |
|
Senior Member
|
10 PRINT "LETS RAID MOLTEN CORE";
20 PRINT "NO LETS RAID TEH FRIDGE"; 30 GOTO 10 40 END
__________________
Stark=Jugg =========== Quote from IRC: [11:39] Davidson: you're way too addicted to warcraft |
|
|
|
|
|
#11 |
|
Who's your daddy?
Join Date: Nov 2004
Posts: 618
![]() |
What exactly are you after here Rage? What parts of the system do you need coded. What parts are already complete/partially complete. What parts do you want to do yourself. What type of GUI do you want, what functionality ect..
I have been using rails for a while now and would love to help out and learn at the same time, just need to know exactly what you need.
__________________
Wolf - 70 Hunter Shard - 70 Priest Backstab - 70 Rogue Hammer - 60 Paladin Blades - 70 Warrior Harm - 62 Shaman |
|
|
|
|
|
#12 |
|
Who's your daddy?
Join Date: Nov 2004
Posts: 618
![]() |
Psst, never gonna get to 40 :P
__________________
Wolf - 70 Hunter Shard - 70 Priest Backstab - 70 Rogue Hammer - 60 Paladin Blades - 70 Warrior Harm - 62 Shaman |
|
|
|
|
|
#13 |
|
Guild Officer
Join Date: Sep 2004
Posts: 1,991
![]() ![]() |
Aha, well - not sure yet :)
It's basically a rewrite - I'm handling the DKP code at the moment, but someone handling the crafting code would be helpful, or even adding a module for profiles :) (you get to work with vedge on that one:) It's very early at this point - and if people would like they can peruse the running DKP code here. http://pistonz.net/projects/chaosDKP |
|
|
|
|
|
#14 |
|
Behind the Curve
|
|
|
|
|
|
|
#15 |
|
Mr. Macro
|
Want me to go ahead and put up the diffs of what I did vs what you did? :P
__________________
Remember, remember, the fifth of December, the day all the addons got shot. I know there were reasons, but the players cried "Treason!" and then QQed quite a lot. - Alliance - Eluana, Divine Night Elf Priest (Tailoring) Dursun, Druken Dwarf Hunter, Master of Fergus (Gnegnegneur) Bookworm, Useless Human Mage (Banking) - Hordes - Dunbas, 'Splodin Undead Mage (Engineering) |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|