Rails Example Application - Substruct (E-Commerce)

Sang Shin, sang.shin@sun.com, Sun Microsystems, www.javapassion.com/j2ee



In this hands-on lab, you are going to build 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. Run rake task.





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 run a "Substruct" sample application. 

                                                                                                                              return to the top


Homework Exercise (for people who are taking Sang Shin's "Java EE Programming online course")


<tbd>

                                                                                                                    return to the top