Skip to Page Content

Creating a Development Environment for the Expertiza Application

From WolfWikis

Jump to: navigation, search

InstantRails installation:

  1. Download InstantRails from http://rubyforge.org/frs/?group_id=904. We are using version 1.7 in our development environments.
    InstantRails comes with everything you need to get started with creating and running a Ruby on Rails application.
    Extract the .zip file to C:\. This should create a new folder called InstantRails.
  2. Open InstantRails: C:\InstantRails\InstantRails.exe
  3. Go to the black “I” button in the upper left-hand corner of the Instant Rails window, and left-click.
    Then go to "Rails Applications > Open Ruby Console Window".
    Install the required ruby gems using the following commands at the prompt.
    gem install –v=1.1.6 rails (Enter Y when prompted to install dependencies)
    (This will take a few minutes.)
    gem install RedCloth
    (For Windows Vista, choose option 2, RedCloth 4.2.2 (x86-mswin32-60).)
    gem install rubyzip

Eclipse installation:

  1. Install a copy of the Eclipse IDE from http://www.eclipse.org. The remainder of the instructions are based on Eclipse Europa, Version 3.3.1.1
  2. Install the following Eclipse Plug-ins {For how to install plugins, see http://agile.csc.ncsu.edu/SEMaterials/tutorials/install_plugin/}
    Ruby Development Tools (for developing Ruby code in Eclipse)
    Eclipse Update Site: http://updatesite.rubypeople.org/release
    Subclipse (to work with the Subversion version-management system in Eclipse)
    Eclipse Update Site: http://subclipse.tigris.org/update_1.2.x
  3. Connect to the Subversion repository and download a copy of the current development application.
    In Eclipse select "File -> Import"
    Choose "Other -> Check out Projects from SVN", then click Next
    Choose "Create a new repository location", click Next
    Enter the URL: http://pg-server.csc.ncsu.edu/svn/pg, click Next
    When prompted enter your login and password.
    In the next window, leave the default buttons selected, and click "Finish".
    Next, select the folder “trunk” and click Next
    Leave the defaults for the “Check Out As” step and click Next
    Specify the workspace location as C:\InstantRails\rails_apps.
    Click Finish
  4. Optionally you can install TortoiseSVN instead of Subclipse. The process should similar to the steps above, but it did not provide Eclipse integration the last time I looked at their site.

Expertiza installation

  1. Rename the file C:\InstantRails\rails_apps\pg\config\database.example to database.yml
  2. Create a new database using the mysql interface
    Open InstantRails: C:\InstantRails\InstantRails.exe
    Select Rails Applications -> Open Ruby console from the menu (the “I” button)
    At the prompt enter the following commands
    C:\InstantRails\rails_apps\pg> mysql –u root
    At the mysql prompt enter
    mysql> create database pg_development;
    mysql> quit
    C:\InstantRails\rails_apps\pg> rake migrate
    This will load the database with the current migration definitions
  3. Start the ruby server:
    C:\InstantRails\rails_apps\pg> ruby script/server
  4. Verify that the application environment works by opening a browser to http://localhost:3000
  5. The administrator account for the development environment can be accessed using the login and password string “admin”. You may need to add additional users during your development.

Back to Expertiza Main page.


Wiki Stats

Users:  7,204
Pages:  3,945
Uploads:  4,767
Views:  4,509,086
Edits:  92,102