As the opening of this series, the system will be my research on the project source of some thoughts and experience introduced to you.
Of course, this system is by no means the so-called "best demonstration", the use of the tips or design ideas mentioned in the actual work to provide a reference, the so-called "best" and other words are "Shorty General", I believe that after a successful analysis of several MVC examples, will find ways or ideas that suit the team or company you are using. In fact, I've spent some time looking for a suitable MVC example, and this example is relatively good for me (in addition to a few documents and related instructions). In addition, the project uses other frameworks or DLL files, such as Castle, Mvccontrib, and nvelocity. These will be covered in subsequent articles.
First of all, explain what this is, in fact, Suteki is an online store a business example, users can choose their favorite products here and through the online payment function to buy. It also provides a relatively complete set of management mechanisms to allow administrators to easily manage their own commodity information, classification information, order information. In short this is a relatively complete system, although Suteki has not been widely installed and used, and there are some sites in the use of it, you can look at the address of its running instance: http://sutekishop.co.uk/.
This project source code download address: http://code.google.com/p/sutekishop/downloads/list
About the blog:http://mikehadlow.blogspot.com/search/label/suteki%20shop of the project, but the poor content of the little
Let's take a look at how to install and actually start a sutekishop.
First, we run the SQL script in the download package to build the database and initialize the corresponding data. SQL files are located in the database folder under the Create_database.sql (creating databases and Tables), Insert_static_data (initializing data).
Because the author is an Englishman, its use of the database script and our Chinese version of the SQL will be different, and I run the SQL2005 is in Chinese, so if the contents of the direct run create_database may appear some anomalies. Fortunately, later I will be some of the resulting errors from the create_database to pick out the found can be installed, so the following will be my modified SQL script content sent up (the end of the article), we download a run to complete the installation of the database.
Note: Some of the "Database link Strings" in the project are to be replaced in batches into our local database.
And then we're going to come up with a final effect:
When you click on the login link at the bottom right of the page, you will see the login prompt box, where we fill in:
Click the "Submitquery" button: