I am interested in the Microsoft MVC framework so with a view to
understanding it properly I decided to pick an open source project that
uses it to help me understand what a real implementation looks like. I
heard Phil Haack talking on the Herding Code podcast about subtext and
it sounded like it is using some interesting technologies, MVC, Lucene
& URL routing^.
Installation on Windows 7 for Development
My Development Platform
- Windows 7 64bit
- Visual Studio 2008 Professional
- Sql Server 2008 (10.0.2531) - 64bit Enterprise
- SVN Revision Number: 4007
Here are the steps I had to complete to begin debugging subtext.
1) Check out the source code - follow this link: http://code.google.com/p/subtext/source/checkout
or if you have an SVN command line client you can try the command below but it may become out of date.
svn checkout https://subtext.googlecode.com/svn/trunk/ subtext-read-only
TIP: When I attempted to checkout the code on my laptop with a 3g dongle I kept getting the error:
svn: Server sent unexpected return value (400 Bad request) in response to OPTIONS request for 'http://subtext.googlecode.com/svn/trunk'
Change the URL to HTTPS://... resolved the issue, I think the cause was a silent proxy.
2) Setting up the database.
If you have Sql Server installed on your dev machine I think that the idea is that the database will install the first time you run the solution.
On my machine I had to manually attach the database myself.
- Open up Sql Server Management Studio and select 'Attach Database'.
- Navigate to the sub folder <SVN Checkout Folder>\src\Subtext.Web\App_Data
- If a Log file appears with a message not found delete it then hit ok.
- Then I updated the connection string to "Data Source=LOCALHOST;Initial Catalog=Subtext2.5;Integrated Security=SSPI;", this can be found in the Subtext.web web.config
3) At this point if all is well you should be able to run the soltion and get the "Installation Wizard" page:
Step 2: Configure the Admin Account (I just followed the instructions and completed the form)
Step 3: Create A Blog (I just clicked the button)
Some useful reading
http://code.google.com/p/subtext/wiki/DeveloperGuide - Some basic info on getting started with development
http://subtextproject.com/Features-and-Requirements.ashx - Details of features and resources.
svn checkout https://subtext.googlecode.com/svn/trunk/ subtext-read-only
Installation on specific Hosting Sites