Rails Example Application - Substruct (E-Commerce Application)

Sang Shin, sangshinpassion@gmail.com, www.javapassion.com/rubyonrails



Substruct is an E-Commerce application.  It supports the following features. The source code is available through Artistic License/GPLv2.
In this hands-on lab, you are going to build and run Substruct example Rails application.


Expected duration: 90 minutes (excluding homework)



Software Needed

Before you begin, you need to install the following software on your computer. 


OS platforms you can use

Change Log


Things to do (by Sang Shin)


Lab Exercises


Exercise 1: Build and run "Substruct" sample application


In this exercise, you are going to build Substruct sample application, which is production-quiality E-commerce application.
  1. Open Substruct NetBeans project
  2. Install required GEM's
  3. Create database and populate tables
  4. Run the project

(2.1) Open "Substruct" NetBeans project


1. Open substruct_rel_1-0-a3 NetBeans project. 


(2.2) Install required GEM's

In this step, you are going to install the following five required GEM's by the application.

1. Install RedCloth gem.









2. Install fastercsv gem.



3. Install mime-types gem.



4. Install mini_magick gem.



5. Install ezcrypto gem.




                                                                                                                                      return to top of the exercise

(2.3) Create database and populate tables


1. Refresh the Rake tasks.



2. Create and populate database tables.





3. Verify that the database and tables are created.










                                                                                                                                   return to top of the exercise


(2.4) Run the project


1. Run the application.







                                                                                                                    return to top of the exercise


Summary

In this exercise,  you have built and ran a "Substruct" sample application. 

                                                                                                                              return to the top


Homework Exercise (for people who are taking Sang Shin's "Ruby on Rails online course")


<tbd>

                                                                                                                    return to the top