My favorites | Sign in
Project Logo
                
Search
for
Updated May 17, 2008 by dandrew.thompson
Labels: Featured
RailsStarterApp  

Introduction

This Rails starter application was built to allow for a base framework for building a startup-type web-application.

We all need some of the same elements, including:

How to get rolling with this app

Prerequisites (go here for instructions on installing these)
  • Ruby 1.8.6
  • RubyGems 1.0.1 (to update run gem update --system)
  • Rails 2.0.2 (to update run gem update rails)
  • sqlite3 (you can install this by running gem install sqlite3-ruby)
  1. Checkout the application from the repository
(For windows users you can use TortoiseSVN)
From the command line, issue the following command:
svn co http://sixhourstartup.googlecode.com/svn/trunk/frameworks/shs_app_rails sixhourstartup
  1. change into your new app directory
  2. if needed, edit config/database.yml to reflect your database & login information (this app defaults to sqlite3 so you shouldn't need to make any changes if you have sqlite installed)
    • if you are running MySQL as your database, if you need instructions on configuring Rails for a MySQL database go to the RailsMySQLSetup page.
  3. run rake db:create:all to create your databases
  4. run rake db:migrate to add the necessary tables to your database
  5. run rake to run all tests and make sure everything is ok
  6. run ./script/server (or ruby script/server if on Windows) to start the server
  7. open browser to http://localhost:3000 to view the application
The default for authentication is that /index.html (the site root) is open to the public. However, if you try to navigate to /home/index.html you should be redirected to a login screen which also includes a link for creating a new account "sign up"

Sign in to add a comment
Hosted by Google Code