A real project, released as a sample

May 4th, 2007

Srdjan Strbanovic from Timok es, one of our clients, decided to release a project we built for him as a sample. This is a very simple project that is not integrated with Timok’s backend. It was built by Henry and took less than three weeks.

It demonstrates:

- First, the quality of our work (shameless plug) ;-)
- A project built using TDD
- Castle latest bits including JS Generation, Validation and so on
  - MonoRail/Windsor
- Acceptance tests using Watin

To download it, refer to the Samples (attachments) page on our using.castleproject wiki.

Thanks to Srdjan that released the project that he paid good money for. I think newbies and seasoned Castle users will appreciate it, albeit in different levels.

Categories: Castle | Top Of Page | |

28 Responses to “A real project, released as a sample”

Christopher Steen Says:

Link Listing - May 4, 2007

Message oriented interop between WCF and Oracle App Server WSIF [Via: ] Astoria: Microsoft’s RESTful…

Occasional misspellings... Says:

Timok’s Monorail project open sourced…

Timok’s Monorail project open sourced…

Sean Chambers Says:

Hammett,

I noticed you have Services sitting between your controllers and repositories. I initially played with this idea but found that my Service objects acted like phantom objects just passing calls along. Can you describe what the benefits are of creating a service layer in this manner?

thanks for the sample! very lean code indeed.

Console.Write(this.Opinion) Says:

Revista Mundo.net 2a edi

Revista Mundo.net 2a edi

Brendan Rice Says:

Hammett,

Thanks for posting this code I have looked at it and I reckon I can learn a lot from it. You may want to check the Web.Config as there is sensitive information in there (SMTP password).

I am trying to get the application to run but I get stuck at the password screen. How can I log in and run the application so I can get a better understanding of what is going on?

Thanks again,

Brendan

hammett Says:

Sean, the service layer is explained on the PoEA book and on the DDD by Eric Evans. It acts as the app layer, basically coordinating invocations to the domain model or other underneath layer. It also defines the transaction boundary.

Brandan, I think you should check the class DataBuilder on the web project. It sets the initial app state. I think the user/pass it sets is user/123

JohnLamberson Says:

Using the Repository and Service pattern is nice. Combining this with Validator and standalone (i.e. not inherit from ActiveRecordBase or ActiveRecordValidationBase) ActiveRecord class makes perfect sense. The only problem that I don’t understand is how to pass the validated error messages between the Views and Service Layer.

Steve Says:

Hi,

I appear to be unable to access the wiki (http://using.castleproject.org/) and have been unable to since it was launched. I just get a blank page in Firefox and IE reports that it cannot display the webpage.

Is this just me? I would love to get my hands on that sample app!!

Cheers,
Steve.

hammett Says:

John, can you explain what you want to achieve?

Lee Says:

I’m also unable to access the download - like Steve, I just get a blank page.

hammett Says:

Guys, try again please.

Steve Says:

hammett,

Can access the wiki now. Thanks heaps.

Mark Lindell Says:

Thanks so much for this release. I’m working my way through Eric’s DDD book and this is a perfect complement. I’ve also been studying Castle’s components.

hammett Says:

Mark, we havent used DDD on this one. But we will release an OSS project that uses DDD soon. Thanks

Harris Says:

What was your motivation for using NVelocity over Brail?

hammett Says:

For us (at the Stronghold) NVelocity is the default choice.

Lee Says:

Got it - Thank you, sir.

Harris Says:

For us (at the Stronghold) NVelocity is the default choice

That’s interesting considering NVelocity isn’t compiled and I would think that factor would add some heavy weight on the decision; although, aside from that, it seems comparable to Brail in functionality.

Pierrus Says:

Hammett,

Any tutorial to make the demo portal run?

It looks great, but unfortunately I’m unable to make it run. Is it a VS2003 project?

Once configured, the websitew won’t run both on .NET 1.0 and .NET 2.0.

Cheers,
Pierre

hammett Says:

Please explain the problem.

Pierrus Says:

Hammett,

The problem is that I’m unable to login with with the credentials (user/123) you provided earlier.

I checked in DataBuilder.cs, and the the credentials are correct.

Cheers.

hammett Says:

Well, debug it. It seems to be working for everybody else.

Cao Says:

Hammett,

I meet the same problem with Pierrus, the user/password(user/123) can’t login.

I debug it, and find that:

1) In LoginController.LogIn Action, after
authenticationService.SetAuthCookie(…)
the cookie (”.ASPXAUTH”) is set.
2) After Redirect(”home”, “index”), when step into AuthenticationFilter.OnBeforeAction, the cookie(”.ASPXAUTH”) is lost. so login is need again.

will you please examine it?

Cheers.

hammett Says:

Cao/Pierrus, please download the new rar. After that, the best thing to do is build it using nant, so all tests will run.

Let me know how it goes. thanks

Cao Says:

Hammett:

I had to make some changes because my VisualStudio doesn’t support webapplication project. I met the same cookie problem as before. At last I use Session instead of cookie, then it seems work.

Thanks very much.

Brendan Says:

I am tryin to download the Timok code but the following website is not available:

http://using.castleproject.org/display/MR/Home

Any ideas?

Thanks

B

Naveen Says:

Hammett:

I am using castle project with visual studio 2005.before installing castle project i configured whatever u have mentioned on castle site.after configuring castle msi and other helping plugins.i just want to add a new class in modal.it is displaying the template controls rather it displaying ajax template and other online template.how do i add a class and other items.how should i workout becos i don’t know about castle much detail. can you give any sample
application so that i better understand and i can start working on it.

Naveen Says:

Hammett:

I am using castle project with visual studio 2005.before installing castle project i configured whatever u have mentioned on castle site.after configuring castle msi and other helping plugins.i just want to add a new class in modal.it is displaying the template controls rather it displaying ajax template and other online template.how do i add a class and other items.how should i workout becos i don’t know about castle much detail. can you give any sample
application so that i better understand and i can start working on it

Leave a Reply