ASP.NET MVC Blog Engine: Part 1 of X

by Chris Nicola 22. November 2009 13:55

This will hopefully be my first post of many on ASP.NET MVC using S#arp Architecture (which I am going to abbreviate #A from this point on) and the Spark view engine.  I really wanted to start getting into MVC and #A provides a very quick and easy to use framework to build your site.  It also combines tools I would choose to use anyways like nHibernate and Windsor IoC.  If you have yet to look into #A and you are planning on doing any .NET MVC work in the future I would recommend giving it at least a first look.

For my part, I've decided to pick the most cliche programming task there is, I am building a blogging engine.  Now, I'm not necessarily planning on doing this so I don't have to use BlogEngine.NET, in fact I like BE.NET for the most part.  I chose a blog engine for learning MVC for the same reason everyone likes using blog engines in examples, they have a very simple and well understood domain model and clearly defined functionality.  This leaves me free to focus on learning the archnitecture instead of on designing the software.

If anyone is interested in following along interactively, I have put my code up on GitHub, so you can check it out, fork it, and generally do whatever you want.  So far I've managed the following:

  • Setup the S#arp Architecture project
  • Changed the view engine to Spark
  • Created the first domain entity: Post
  • Created the basic views to:
    • List posts
    • Create/Edit posts
  • Created two #A "areas" one root and one for admin (creating/editing posts)
  • Organized my views using the "three-pass" logic of Spark
  • Added a jquery calendar component for editing dates
  • Added CKEditor for editing the HTML content of posts

Once you have checked out the code you simply need to create a local SQLExpress database called "Graphite", nHibernate will do the rest when you run the web project.

Tags: , , , ,

ASP.NET MVC | Coding | nHibernate

Comments

Add comment


(Displays Gravatar)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Welcome

My name is Chris Nicola and I am software developer/engineer in Vancouver, Canada.  

I am primarily a .NET'er but my interests range far and wide.  My currently interes include domain driven design, test driven design, command-query responsibility segregation, and agile software development practices.  

I am also an active member of ALT.NET and Agile Vancouver.

Vancouver ALT.NET

Recent Comments

Comment RSS

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar