Check out the tech preview
July 4 2011 Tweet
BrickPile is easy to setup, just follow these simple steps and you are up’n running in no time.
- Create a fresh ASP.NET MVC 3 Web application
- Removed unused packages installed by the project template
- Run PM> Install-Package BrickPile inside the Package Manager Console in Visual studio (in some cases nuget adds multiple values of the form tag inside web.config)
- Navigate to the folder RavenDB.* in the packages directory
- Dowload and extract https://github.com/downloads/kloojed/BrickPile/Plugins.rar and put the plugins folder inside RavenDB.*/server
- Start Raven.Server.exe, ensure you run it on port 8080
- Hit f5 and navigate to /dashboard/account/manageusers and enter your credentials
- Create a new controller called HomeController with the following code
public class HomeController : Controller { private readonly IPageModel _model; public ActionResult Index() { return View(_model); } public HomeController(IPageModel model) { _model = model; } - Create a new model called Home
[PageModel("Start page")] public class Home : PageModel { public string Heading { get; set; } [DataType(DataType.Html)] public string MainBody { get; set; } } - Create a new view for the HomeController
@model YOURNAMESPACE.Models.Home @{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Layout.cshtml"; } <h1>@Html.DisplayFor(model => model.Heading)</h1> @Html.Raw(Model.MainBody) - Navigate to /dashboard and login using your credentials
- Click Content and create your default page
That’s it, enjoy!