IntroductionThis 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 appPrerequisites (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)
- 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
- change into your new app directory
- 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.
- run rake db:create:all to create your databases
- run rake db:migrate to add the necessary tables to your database
- run rake to run all tests and make sure everything is ok
- run ./script/server (or ruby script/server if on Windows) to start the server
- 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"
|