RealNiceRugs.com Iteration 0

This is the third post in a series about my attempt to create a basic eCommerce platform on WSS 3.0 to replace the site I use to sell welcome mats. You can read about the project here and see all the posts in this category here.

To complete iteration 0 I need to pick my toolset and set up version control.

My Toolset

I know that I’ll be adding to the toolset over time, especially when I begin to integrate forms based authentication and credit card processing. I have some ideas about both of these, but I am deferring selection of those components until later. For now, my toolset will consist of:

I’ll use VS2008 to create the project and the individual artifacts. I’ll use SPD to create my master pages. WSPBuilder will help me package everything into a Web solution package, and my own SharePoint Skinner will help me create my style sheets and themes. (Who knows? maybe I’ll finally finish v1.1 of skinner in the process!)

Version Control

Since I’m doing all of this in full view of you, my readers, I’ve decided to use the source control services provided by CodePlex. I created a new project named WSSStore located here. I am using Visual Studio Team System 2008 Team Explorer. You can download it here.

Setting Up the Project

I didn’t intend to start any concrete implementation until iteration 1, but I went ahead and made a new project containing a basic site definition so that I could finish setting up the CodePlex site. I’ll explain the contents of the project in a subsequent post, but there are a couple things you need to do in order to build the solution.

The first thing you need to do is install the WSPBuilder files to your development server’s local disk. The release files are in a ZIP archive, so just extract them to a directory of your choice.

The project uses the following Post-build event command line script in the VS project’s properties to build the package and deploy the solution:

cd $(ProjectDir)

wspbuilder

stsadm -o retractsolution -name $(ProjectName).wsp -immediate

stsadm -o execadmsvcjobs

stsadm -o deletesolution -name $(ProjectName).wsp

stsadm -o addsolution -filename $(ProjectName).wsp

stsadm -o deploysolution -name $(ProjectName).wsp -allowgacdeployment -immediate

stsadm -o execadmsvcjobs

 

For this to work you must add the locations of stsadm.exe and wspbuilder.exe to the Path environment variable.

In Explorer, right-click My Computer and select Properties. On the Advanced tab, click Environment Variables.

The Environment Variables dialog box will open. Select Path and click Edit.

Add the following to the end of the path:

;C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12bin;C:ThePlaceYouPutWSPBuilder;

Click the various OK buttons to save the path and you’ll be able to build the solution.

After you build the solution, the WSS Store template will appear on the Create Site and Create Site Collection pages. This version is simply a blank site definition.

The source code for this iteration is available on CodePlex and is also downloadable as a zip file here.