Infrastructure for CodeProject. Information on how to setup one's machine to get the project running goes here.
Contents
On Windows
See http://www.napcs.com/howto/railsonwindows.html for a detailed list of instructions.
Ruby
Download and install ruby with the One-Click Ruby Installer. This installs both ruby and gem
Rails
- Open a command prompt and type
gem install rails --include-dependencies
Eclipse
Download from http://download.eclipse.org/eclipse/downloads/index.php
- Unzip to directory where it will live. I recommend a place without spaces in the path, such as "c:\bin\eclipse"
- Create a shortcut to it for ease in launching.
- Start it up
Eclipse RDT plugin
Within Eclipse, Help->Software Updates->Find and install from http://rubyeclipse.sf.net/updatesite
Full instruction at http://www.napcs.com/howto/railsonwindows.html (Its claimed that much of this applies to Eclipse under Linux)
Eclipse SVN plugin
Within Eclipse, Help->Software Updates->Find and install from http://subclipse.tigris.org/update
Full instructions at http://subclipse.tigris.org/install.html
MySql
Set up the project
Check out from SVN
in Eclipse, Window->Open Perspective->Other->SVN Repository Exploring
Repository URL: https://opensvn.csie.org/AgileMD_CodeProject
Repository Root URL: https://opensvn.csie.org
You can also browse CVS
Expand the node created, select "trunk, right-click and Check out as...
name the project something useful, like "AgileMD_CodeProject" rather than "trunk"
Set up database
in Eclipse, Window->Open Perspective->Other->Ruby
in Eclipse, Window->Show View->Other->Basic->Navigator
- open config/database.example
- edit the username and password, if necessary
File->Save As->database.yml
- Note: this file should not be checked into SVN
- Open a command window (AKA 'DOS Prompt')
mysql -u <username> -p to start the Mysql client
mysql> create database membership;
mysql> create database membership_test;
mysql> create database membership_prod;
mysql> quit;
mysql -u root -p membership < {project-dir}/db/development_structure.sql
mysql -u root -p membership_test < {project-dir}/db/development_structure.sql
mysql -u root -p membership_prod < {project-dir}/db/development_structure.sql
Install 3rd-party libraries
gem install pdf-writer --include-dependencies
Set up external tools in Eclipse
Herbert Spencer: "There is a principle which is a bar against all information, which is proof against all arguments and which cannot fail to keep a man in everlasting ignorance -- that principle is contempt prior to investigation." |