View on GitHub

BoilerPlate MVC

A boilerplate solution for an N-tiered Servicestack, MVC, Bootstrap application

Download this project as a .zip file Download this project as a tar.gz file

What is it?

A boiler plate solution for an N-Tiered, Service Stack enabled Application. I built this primarily for my own use but figured others could get some mileage out of it. It offers:

Why?

One of my goals for 2013 is to create and experiment with more side projects. Starting with a visual studio project template leaves a ton of work to add/remove features and nuget packages that can take hours just to setup. I wanted to have a clean boiler plate solution with what I thought were the best .Net tools that also contained good coding practices that I could scale and easily use in a variety of different projects. It'd also be a great opportunity to get other's input to see what other tools and features I'm missing that could be added to the boiler plate solution so that I could learn from others.

How to use

Simply download the zip file and extract the source. Then start coding! In the lib folder is a Visual Studio Project Renamer tool that will assist in renaming the projects (you probably will want to change the generic 'application' title I've given it). Simly run the VSPRGui.exe and browse to the solution to use. The rest should be easy to figure out. To add the custom templates, go to the Templates Explorer from the Resharper menu, select the 'File Templates' tab, click the Import button, and add the custom-template.DotSettings file. Make sure to add these templates to the c# quicklist for quick access!

Adding Models and configuring the CRUD operations

Add and configure your model in the Application.Models Layer. Then use the custom resharper file templates to quickly:

If anyone knows how I could combine this into one step that'd be a great step into making this process even quicker. My goal is to get this to be similar to Ruby on Rails where a model is added and have everything else automagically configured. Of course it's easy to add implementation in the services and repositories created.

If you have any questions using the project let me know and I'll try to update documentation for it.

Also feel free to contribute and improve the project! Here's what I'm trying to add in the near future

View the Todo application on App Harbor

Thanks to Demis Bellot and Service Stack crew as this project relies heavily on most of their work!