Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# bbru 5/23/2007 10:07 PM
Hi!

I'm using Cuyahoga for our corporate website (www.saentisblick.org) and I have some other websites in the pipeline.

What I realy like about Cuyahoga is its impressing architecture (NHibernate and all that stuff). So what I was thinking about is using Cuyahoga as a kind of base for a asp.net business application (kind of simple CRM).

What do you think about this idea?

- In general?
- When yes, how? (module?, something other?)
- Is there someone how did already something similar with Cuyahoga?


--
Bye, Basil
# martijnb 5/24/2007 3:38 AM (edited 5/24/2007 3:42 AM)
At my last employer, we built fairflowersfairplants.org, a portal with quite a lot business logic. For example, check out http://www.fairflowersfairplants.com/en/find-supply.aspx. For anonymous users it's more or less an advanced product finder, but authenticated users can drill down into lots of details. Some of these are in the same module and some in other modules (connected via Module Connections).

So yes, you can use it as an application platform and use modules for the advanced custom stuff.

We did learn some lessons though:
- only use the module controller for determining views and actions and delegate as much as possible to other classes, otherwise the module controller explodes with complex modules (nothing more than common sense, I guess :))
- setting up an application with lots of connected modules is no fun, especially if you also have to deal with multiple languages.
- it's only possible to set permissions at section level. With complex modules that are located in one section, we experienced that it would be very nice to also have permissions at action level (actions like 'ViewProfile', 'EditProfile').
# swilliam 5/24/2007 6:21 AM
Basil

I can certainly agree with Martijn about the module explosion. If you're not careful a module can become many hundreds of lines long.

In our (yet to be released) ECommerce module, there are many different views, all dictated by the module controller (one for a catalogue browser, one for a basket view, one for a quick summary of a basket etc etc). These share the same translation files, so translation is simplified slightly.

We've split different functionality into services, based on an interface, so that Windsor/Castle can be used to pull in specific implementations. A lot of modules also have an abstracted DataAccess class to reduce the code in the module, and also make it reusable.

We're solving communication between connected "modules" by a shared mediator class. That will probably be removed and replaced with the ActionProvider/Consumer model built into Cuyahoga.

The main difficulty in these sorts of systems is writing mini applications that live within a single control; it's a different mindset. People are generally more used to creating lots of APX files and jumping from one to another.

Many thanks

Simon
# bbru 5/28/2007 9:29 PM
Hi!

Thank you for your thoughts. I'll probably use MonoRail and ActiveRecord from the Castle Project instead of using Cuyahoga as an application framework.

--
Basil
# martijnb 5/29/2007 2:47 AM
That's a fine choice if you don't need much of Cuyahoga's functionality.