public
Description: Rails/engines plugin creating an online shop.
Homepage:
Clone URL: git://github.com/twenrich/substruct.git
subimage (author)
Sun Nov 02 21:19:52 -0800 2008
commit  32a8829cef1b2cbf25089c1497405445081ab1b9
tree    4444ae1e699fbe6122bd71fb5ae7c739cc136605
parent  574dab35df450d56d44b2cdb6e45fccc6b996236
name age message
file CHANGELOG Wed Aug 27 00:08:09 -0700 2008 BIG CHANGES. Make sure to run 'script/generate ... [subimage]
file LICENSE Fri Feb 08 21:04:33 -0800 2008 Initial import from old SVN. git-svn-id: htt... [subimage]
file README Mon Feb 11 04:45:13 -0800 2008 Rolled in PayPal IPN patch from Matthew Sewell.... [subimage]
directory app/ Sun Nov 02 21:19:52 -0800 2008 Added another test to ensure new_notes accessor... [subimage]
directory assets/ Fri Sep 19 00:03:07 -0700 2008 Made content editing more friendly. * Using a ... [subimage]
directory config/ Thu Aug 28 21:27:48 -0700 2008 Cleaned things up and moved the location of the... [subimage]
directory db/ Thu Sep 18 03:43:04 -0700 2008 Updated migrations after upgrading an oooold su... [subimage]
file init.rb Fri Feb 08 21:04:33 -0800 2008 Initial import from old SVN. git-svn-id: htt... [subimage]
directory lib/ Sun Nov 02 14:20:35 -0800 2008 Fix for r144 git-svn-id: http://substruct.goog... [subimage]
file routes.rb Thu Aug 28 21:27:48 -0700 2008 Cleaned things up and moved the location of the... [subimage]
directory tasks/ Thu Aug 28 21:27:48 -0700 2008 Cleaned things up and moved the location of the... [subimage]
directory test/ Sun Nov 02 21:19:52 -0800 2008 Added another test to ensure new_notes accessor... [subimage]
README
#summary How to install Substruct

= Installing Substruct =

== Introduction ==

This software package is developed using the Engines plugin. To find out more about how to use engines in general, go to 
http://rails-engines.org

*These directions assume you already have a working Rails hosting environment. This means...*
 * A web server such as
   * Webrick (included with Rails)
   * Apache
   * Lighttpd
 * A rails app server
   * Mongrel
   * FastCGI
 * MySQL / PGSql
 * Ruby
 * Rails
 * Rubygems

These directions _also_ assume you have some familiarity with developing Rails applications in general and a working 
knowledge of your file system.

== Installation ==

=== 0. Install the following gems...Substruct needs them to function properly. ===
 * RedCloth
 * fastercsv
 * mime-types
 * mini_magick
 * ezcrypto

{{{

gem install RedCloth
gem install fastercsv
gem install mime-types
gem install mini_magick
gem install ezcrypto

}}}

!! NOTE !! Be sure openssl is also installed. For Debian linux boxes this is _not_ included in the default Ruby 
installer. If you are running on debian it's as easy as typing 'apt-get install libopenssl-ruby1.8'



=== 1. Download & extract the latest release ===

All releases are stored as tar / gzipped files here:
http://code.google.com/p/substruct/downloads/list

They are marked with version numbers. Grab the latest one and extract it.

For instance, if you were working with release 0.97, you'd type the following on OS X and Linux

{{{

tar -xzvf substruct_rel_0-97.tar.gz

}}}

[GettingTheCode If you'd rather use SVN to download the latest code click here.]


=== 2. Set up your databases and edit your database.yml file ===

You'll need to have a running MySQL or PGSql instance, and create the proper databases for use.

We recommend the following:

 * substruct_development
 * substruct_test
 * substruct_production

Edit your database.yml file to make sure that Rails can access your database properly.
For more information on the database.yml file, visit this url: http://wiki.rubyonrails.org/rails/pages/database.yml

=== 3. Initialize your database ===

Run this command from inside the substruct directory you extracted previously

{{{

rake substruct:db:bootstrap

}}}

== Usage ==

Fire up your environment!

{{{

ruby script/server

}}}

Try to login to http://localhost:3000/admin as ''admin'' / ''admin''

=== Misc ===

If you're going to be doing credit card transactions you need a processor account. [wiki:AuthorizeNet Check out how to 
get one.]

Make sure you check out [MaintainingSubstruct how to maintain Substruct via cron] as well.